summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6b0bf98f5019d45dcaa84b88ed96090d8d8e6d82 (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
# Maintainer: Alexandros Theodotou <alex at alextee dot org>

_pkgname=libcyaml
pkgname=$_pkgname-git
pkgver=master
pkgrel=1
pkgdesc="C library for reading and writing YAML"
arch=('x86_64')
url="https://gitlab.com/alextee/libcyaml"
license=('ISC')
provides=("$_pkgname")
conflicts=("$_pkgname")
depends=('libyaml')
makedepends=('git')
source=("$_pkgname:git+https://gitlab.com/alextee/$_pkgname.git")
md5sums=('SKIP')

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

prepare() {
	cd "$srcdir/$_pkgname"
}

build() {
	cd "$srcdir/$_pkgname"
	make --prefix=/usr
}

package() {
	cd "$srcdir/$_pkgname"
	make DESTDIR="$pkgdir" install
}