summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e41faa74435563c59954365a12d8856b61d521b3 (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
36
# 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
}

package() {
	cd "$srcdir/$_pkgname"
  mkdir -p $pkgdir/usr/lib/pkgconfig $pkgdir/usr/include
	make DESTDIR="$pkgdir" PREFIX=/usr install
}