summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: da0b924bd22e70b5658a52fe90b6478058dacd32 (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=r195.1eea3eb
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
}