blob: 3520e79ee42619b548c106ca4bd3df59d04f4283 (
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
|
#!/usr/bin/env bash
# Maintainer: Rob Shinn <rob.shinn@gmail.com>
pkgname=irker-git
pkgver=2.24.r0.g26866bf
pkgrel=2
pkgdesc='Automated shipping of open-source project releases'
provides=('irker')
conflicts=('irker')
arch=('any')
license=('BSD2')
url="http://www.catb.org/~esr/irker"
makedepends=('gzip' 'asciidoc' 'make')
depends=('python3')
source=("${pkgname}::git+https://gitlab.com/esr/irker")
sha256sums=('SKIP')
docs=('NEWS' 'README' 'irkerd.html' 'irkerhook.html' 'irk.html' 'hacking.html' 'security.html' 'install.html')
examples=('irk' 'irkerhook.py')
pkgver() {
cd "${srcdir}/${pkgname}"
git describe --long --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "${srcdir}/${pkgname}"
make docs install.html security.html hacking.html
}
package() {
cd "${srcdir}/${pkgname}"
DESTDIR="$pkgdir" prefix=/usr make install
install -Dm644 "${srcdir}/${pkgname}"/irkerd.service "${pkgdir}"/usr/lib/systemd/system/irkerd.service
for doc in ${docs[@]}; do
install -Dm644 "${srcdir}/${pkgname}"/$doc "${pkgdir}"/usr/share/doc/irker/$doc
done
for example in ${examples[@]}; do
install -Dm755 "${srcdir}/${pkgname}/$example" "${pkgdir}/usr/share/doc/irker/examples/$example"
done
}
|