diff options
-rw-r--r-- | .SRCINFO | 11 | ||||
-rw-r--r-- | PKGBUILD | 47 |
2 files changed, 33 insertions, 25 deletions
@@ -1,16 +1,17 @@ pkgbase = libcyaml-git pkgdesc = C library for reading and writing YAML - pkgver = 1.1.0+10+gc95c7bc + pkgver = 1.3.0+r630.5206ece pkgrel = 1 url = https://github.com/tlsa/libcyaml arch = x86_64 license = ISC makedepends = git + depends = glibc depends = libyaml - provides = libcyaml=1.1.0+10+gc95c7bc + provides = libcyaml.so + provides = libcyaml conflicts = libcyaml - source = libcyaml::git+https://github.com/tlsa/libcyaml.git - sha512sums = SKIP + source = libcyaml-git::git+https://github.com/tlsa/libcyaml + sha256sums = SKIP pkgname = libcyaml-git - @@ -1,34 +1,41 @@ +# Maintainer: Luis Martinez <luis dot martinez at disroot dot org> # Contributor: Pascal Ernster <aur at hardfalcon dot net> -# Contributor: Alexandros Theodotou <alex at alextee dot org> +# Contributor: Alexandros Theodotou <alex at zrythm dot org> -_pkgname="libcyaml" -pkgname="${_pkgname}-git" -pkgver=1.1.0+10+gc95c7bc +pkgname=libcyaml-git +pkgver=1.3.0+r630.5206ece pkgrel=1 -pkgdesc="C library for reading and writing YAML" +pkgdesc='C library for reading and writing YAML' arch=('x86_64') -url="https://github.com/tlsa/libcyaml" +url='https://github.com/tlsa/libcyaml' license=('ISC') -provides=("${_pkgname}=${pkgver}") -conflicts=("${_pkgname}") -depends=('libyaml') +depends=('glibc' 'libyaml') makedepends=('git') -source=("${_pkgname}::git+https://github.com/tlsa/${_pkgname}.git") -sha512sums=('SKIP') +provides=('libcyaml.so' 'libcyaml') +conflicts=('libcyaml') +source=("$pkgname::git+$url") +sha256sums=('SKIP') -pkgver () { - cd "${srcdir}/${_pkgname}" - git tag "1.1.0" "7e1cd870e1ec92365d37b2081a6b29a55096e999" # Fix for upstream repo lacking versioning tags - git describe --long --tags | sed 's|-|+|g' +pkgver() { + cd "$pkgname" + local _tag="$(git tag | tail -n1 | sed 's/^v//')" + local _rev="$(git rev-list --count HEAD)" + local _commit="$(git rev-parse --short HEAD)" + printf "%s+r%s.%s" "$_tag" "$_rev" "$_commit" } build() { - cd "${srcdir}/${_pkgname}" - make + cd "$pkgname" + make VARIANT=release +} + +check() { + cd "$pkgname" + make test } package() { - cd "${srcdir}/${_pkgname}" - make DESTDIR="$pkgdir" PREFIX="/usr" install - install --target-directory="${pkgdir}/usr/share/licenses/${pkgname}" -D "LICENSE" + cd "$pkgname" + make install VARIANT=release DESTDIR="$pkgdir/" PREFIX=/usr + install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/" } |