-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKGBUILD
40 lines (38 loc) · 1.53 KB
/
PKGBUILD
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
# Maintainer: Holger Döbler <[email protected]>
pkgname=verapdf
pkgver=1.20.1
pkgrel=1
epoch=
pkgdesc="purpose-built, open source, file-format validator covering all PDF/A parts and conformance levels"
arch=('any')
url="https://verapdf.org/"
license=('GPL3' 'MPL2')
groups=()
depends=('java-runtime' 'bash')
makedepends=('unzip')
source=("https://software.verapdf.org/rel/1.20/${pkgname}-greenfield-${pkgver}-installer.zip"
"$pkgname.png::https://avatars1.githubusercontent.com/u/9946925?s=280&v=4"
"$pkgname.desktop"
"auto-install.xml")
noextract=("${pkgname}-greenfield-${pkgver}-installer.zip" 'auto-install.sh')
md5sums=('3a6488467a30910fdfda4866fdeb437e'
'076b23717ab675281ed53dcf84471b89'
'd84e22d0455afdf60816e182d66ce089'
'312f8dc7e9c4a6ecfd25d75aff7b22c9')
prepare() {
cd ${srcdir}
unzip "${pkgname}-greenfield-${pkgver}-installer.zip"
sed -e "s;/usr/share/verapdf;${pkgdir}/usr/share/${pkgname};" < auto-install.xml > ${pkgname}-greenfield-${pkgver}/auto-install.xml
}
package() {
cd ${srcdir}/${pkgname}-greenfield-${pkgver}
./${pkgname}-install auto-install.xml
rm ${pkgdir}/usr/share/verapdf/.installationinformation
rm -r ${pkgdir}/usr/share/verapdf/Uninstaller
mkdir -p ${pkgdir}/usr/bin
for f in verapdf verapdf-gui ; do
ln -s /usr/share/${pkgname}/$f ${pkgdir}/usr/bin/$f
done
install -Dm644 ${srcdir}/${pkgname}.png ${pkgdir}/usr/share/pixmaps/${pkgname}.png
install -Dm644 ${srcdir}/${pkgname}.desktop ${pkgdir}/usr/share/applications/${pkgname}.desktop
}