summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2450aa7223b2189ea57280e60dea6bf75769110a (plain)
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
57
58
# Maintainer : Stefano Capitani <stefanoatmanjarodotorg>
# Maintainer : lemovice <lemovice-at-ancestris-dot-org> 

pkgname=ancestris
pkgver=10
pkgrel=1
_date=20200208
pkgdesc='Ancestris is a genealogy program written in Java'
arch=('any')
url='http://ancestris.org/'
license=('CDDL' 'GPL')

depends=('jdk11-openjdk' 'ttf-font' 'libxtst' 'giflib' 'atk')
source=("$url/mw/mw-base/compteur_dl.php?/dl/pub/$pkgname/releases/${pkgname}_${pkgver}-${_date}.zip"
'ancestris.desktop'
'ancestris.png')

md5sums=('4805afbf67ab738eb06ffd5ccff7bba8'
         '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: