diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..722c1f62d8bc --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,61 @@ +# Maintainer : lemovice <lemovice-at-ancestris-dot-org> +# Contributor : + +pkgname=ancestris +pkgver=0.8 +pkgrel=1 +pkgdesc='Ancestris is a genealogy program written in Java' +arch=('any') +url='http://ancestris.org/' +license=('CDDL' 'GPL') +provides=('ancestris') + +depends=('java-environment' 'ttf-font' 'libxtst' 'giflib' 'atk') +install='ancestris.install' +#options=('!strip') +source=('http://www.ancestris.org/mw/mw-base/compteur_dl.php?/dl/pub/ancestris/releases/ancestris_0.8-0-20150521.zip' +'ancestris.install' +'ancestris.desktop' +'ancestris.png') +md5sums=('4307e7badb913ae304793043a791230a' + '4252d135a228c77f49a651225c037e07' + '2d23096eea04659d55dc6d45fb57cc37' + 'bae346ed409e57d174386cd7db583ff5') +DLAGENTS=('ftp::/usr/bin/curl -fC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u' + 'http::/usr/bin/curl -A "Mozilla/4.0" -fLC - --retry 3 --retry-delay 3 -o %o %u' + 'https::/usr/bin/curl -A "Mozilla/4.0" -fLC - --retry 3 --retry-delay 3 -o %o %u' + 'rsync::/usr/bin/rsync --no-motd -z %u %o' + 'scp::/usr/bin/scp -C %u %o') + + +build() { + # cleanup OS specific files + rm $(find -name '*\.exe' -or -name '*\.bat') +# rm -r $(find -name 'MacOSX*' -or -name 'Windows*' -or -name 'SunOS*') +# rm -r $(find -name 'hpux*' -or -name 'mac*' -or -name 'solaris*' -or -name 'windows*') + # Remove 64 bits files on an i686 system else stripping fails + if [ `uname -m` = 'i686' ]; then + rm -rf $(find -name '*64*') + rm -rf $(find -name '*x64*') + rm -rf $(find -name 'Linux-x86_64') + fi + if [ `uname -m` = 'x86_64' ]; then + rm -rf $(find -name '*86*') + fi +} + +package() { + install -d ${pkgdir}/usr/share/java + cp -r ${pkgname} ${pkgdir}/usr/share/java + + install -d ${pkgdir}/usr/bin + ln -s /usr/share/java/${pkgname}/bin/${pkgname} ${pkgdir}/usr/bin/${pkgname} + + install -d ${pkgdir}/usr/share/applications + install -m644 /$srcdir/${pkgname}.desktop ${pkgdir}/usr/share/applications + + install -d ${pkgdir}/usr/share/pixmaps + install -m644 $srcdir/${pkgname}.png ${pkgdir}/usr/share/pixmaps +} + +# vim:set ts=2 sw=2 et: |