summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b6a9973c3b1a140399a91c49621a09cb5fab4585 (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
# Maintainer: 2ion <dev@2ion.de>
pkgname=crctk-git
pkgver=0.5.1.r9.g6d8ead4
pkgrel=1
pkgdesc="Toolkit for working with CRC32 checksums from the command line"
arch=('i686' 'x86_64')
url="https://github.com/2ion/crctk"
license=('GPL3')
depends=('kyotocabinet' 'zlib' 'ncurses')
makedepends=('git' 'automake' 'autoconf')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('crctk::git+https://github.com/2ion/crctk.git#branch=master')
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/${pkgname%-git}"
  printf "%s" "$(git describe --tags | sed 's/-/.r/;s/-/./')"
}

build() {
  cd "$srcdir/${pkgname%-git}"
  autoreconf --install --force --symlink
  ./configure --prefix=/usr
  make
}

package() {
  cd "$srcdir/${pkgname%-git}"
  make DESTDIR="$pkgdir/" install
}