summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: be56b92f7af6552024470f3aefb8ddca2bc99865 (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
pkgname=atl-git
pkgver=r318.d2a319c
pkgrel=1
pkgdesc="Libatl provides a library for the creation and manipulation of lists of name/value pairs using an efficient binary representation"
license=('BSD')
arch=('x86_64')
url="https://github.com/GTkorvo/atl"
depends=('gcc-libs')
makedepends=('cmake')
provides=('atl')
conflicts=('atl')
source=("git+https://github.com/GTkorvo/atl.git")
sha256sums=('SKIP')

pkgver() {
  cd atl
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd atl
  cmake -DCMAKE_INSTALL_PREFIX=/usr \
        -DCMAKE_BUILD_TYPE=Release \
        -DCMAKE_SKIP_INSTALL_RPATH=ON \
        -DCMAKE_INSTALL_LIBDIR=lib \
        -DBUILD_TESTING=OFF \
        .
  make
}

package() {
  cd atl
  make DESTDIR="$pkgdir" install
}