-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathPKGBUILD
28 lines (25 loc) · 769 Bytes
/
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
pkgname=pdf-decrypt
_gitname=pdf-decrypt
pkgver=0
pkgrel=1
pkgdesc="Remove password-protection from PDFs permanently."
arch=('any')
url="https://github.com/zvyn/pdf-decrypt"
license=('MIT')
depends=('qpdf')
makedepends=('git')
source=('git://github.com/zvyn/pdf-decrypt.git')
md5sums=('SKIP')
pkgver() {
cd $_gitname
## Use the tag of the last commit
# git describe --always | sed 's|-|.|g'
echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}
package() {
install -Dm755 "$srcdir/$_gitname/$pkgname.bash" "$pkgdir/usr/bin/$pkgname"
install -Dm755 "$srcdir/$_gitname/$pkgname.png"\
"$pkgdir/usr/share/pixmaps/$pkgname.png"
install -Dm755 "$srcdir/$_gitname/$pkgname.desktop"\
"$pkgdir/usr/share/applications/$pkgname.desktop"
}