blob: 1f4b1596d6934e053f155a07c3cbe8575d446818 (
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
|
# Maintainer: AlphaJack <alphajack at tuta dot io>
# Contributor : Stefano Capitani <stefanoatmanjarodotorg>
# Contributor : lemovice <lemovice-at-ancestris-dot-org>
pkgname="ancestris"
pkgver=11.20211017
pkgrel=1
pkgdesc="A genealogy program written in Java"
url="https://www.ancestris.org"
license=("GPL3")
arch=("any")
optdepends=("java-runtime=8: to use java 8"
"java-runtime=10: to use java 10"
"java-runtime=11: to use java 11") # java 16 doesn't seem to be supported
source=("https://www.ancestris.org/dl/pub/ancestris/releases/${pkgname}_${pkgver/\.*/}-${pkgver/*\./}.deb")
sha256sums=('eda19606e4bf58cd8ad939461c7762184c0019ddf45423d88d8aafdfbaa3b8f5')
backup=("etc/ancestris/ancestris.clusters" "etc/ancestris/ancestris.conf")
options=("!strip")
prepare(){
tar -xf "data.tar.xz"
}
package(){
# remove windows files
find . -type f \( -name "*.exe" -o -name "*.dll" \) -exec rm {} \;
# copy program files
cp -r "usr" "$pkgdir"
# move configuration
install -d "$pkgdir/etc"
mv "$pkgdir/usr/share/ancestris/etc" "$pkgdir/etc/ancestris"
ln -s "/etc/ancestris" "$pkgdir/usr/share/ancestris/etc"
}
|