blob: 8f1d2f93ef327feb53aa9666dc430ad88ab07184 (
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
|
# Maintainer: grimi
pkgname=bencodetools-git
pkgver=r214.384d78d
pkgrel=1
pkgdesc="A collection of tools for manipulating bencoded data."
arch=("x86_64")
url="https://gitlab.com/heikkiorsila/bencodetools"
license=("custom")
makedepends=("git")
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("git+https://gitlab.com/heikkiorsila/bencodetools.git")
md5sums=("SKIP")
pkgver() {
cd "${pkgname%-git}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd ${pkgname%-git}
./configure --prefix=/usr --lib-path=/usr/lib --package-prefix="${pkgdir}" --without-python
make
}
package() {
cd ${pkgname%-git}
make install
install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname%-git}/LICENSE
}
|