blob: b80c4d9752e496f25d70f56933b29a690ed26ee7 (
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
|
# Maintainer: Ruben Solvang <post@rubensolvang.no>
pkgname=nbno-git
pkgver=r32.b08c399
pkgrel=1
pkgdesc="A Python script that downloads books from nb.no (Nasjonalbiblioteket)"
arch=('any')
url="https://github.com/Lanjelin/NBNO.py"
license=('GPL3')
depends=('python>=3.7' 'python-pillow>=6.0')
source=("$pkgname::git+https://github.com/Lanjelin/NBNO.py.git")
md5sums=('SKIP')
pkgver() {
cd "${pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cd "${srcdir}"/${pkgname}
install -dm 755 ${pkgdir}/usr/bin
sed -i '1i #!/usr/bin/env python' nbno.py
install -Dm 755 ./nbno.py ${pkgdir}/usr/bin
chmod +x "${pkgdir}/usr/bin/nbno.py"
}
|