public
anonymous / PKGBUILD.txt
Created

PKGBUILD

  • Download Gist
PKGBUILD.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
# Maintainer: Stanislav GE <ginermail@gmail.com>
 
pkgname=doublecmd-svn
pkgver=5152
pkgrel=1
pkgdesc="Double Commander is a cross platform open source file manager with two panels side by side. It is inspired by Total Commander and features some new ideas."
arch=(i686 x86_64)
url=http://doublecmd.sourceforge.net
license=(GPL2)
makedepends=('lazarus' 'fpc' 'subversion')
_svnmod=doublecmd-code
source=('doublecmd-code::svn://svn.code.sf.net/p/doublecmd/code/trunk')
md5sums=('SKIP')
 
pkgver() {
cd "$SRCDEST/$_svnmod"
svnversion
}
 
build() {
cd $srcdir/$_svnmod
./build.sh beta
}
 
package() {
cd $srcdir/$_svnmod
# create doublecmd link to /usr/bin
prefix=/opt/doublecmd
install -d $pkgdir/usr/bin
ln -s $prefix/doublecmd $pkgdir/usr/bin/doublecmd
 
# install desktop file and icon
install -D -m 644 install/linux/doublecmd.desktop $pkgdir/usr/share/applications/doublecmd.desktop
install -D -m 644 doublecmd.png $pkgdir/usr/share/pixmaps/doublecmd.png
 
# install plugins
for plugin in plugins/wcx/*/lib/*.wcx \
plugins/wdx/*/lib/*.wdx \
plugins/wlx/*/lib/*.wlx \
plugins/dsx/*/lib/*.dsx \
plugins/wfx/*/lib/*.wfx \
; do
dest_plugin_path=$(echo $pkgdir/$prefix/$plugin|sed 's/\/lib\//\//')
install -D -m 644 $plugin $dest_plugin_path
done
 
# install doc, language, pixmaps
cp -r doc $pkgdir/$prefix/doc
cp -r language $pkgdir/$prefix/language
cp -r pixmaps $pkgdir/$prefix/pixmaps
 
# install bin, misc
install -D -m 755 doublecmd $pkgdir/$prefix
install -D -m 644 install/linux/doublecmd.xml doublecmd.ext.example \
pixmaps.txt multiarc.ini $pkgdir/$prefix
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.