diff options
author | Shengyu Zhang | 2019-05-15 17:55:37 +0800 |
---|---|---|
committer | Shengyu Zhang | 2019-05-15 17:55:37 +0800 |
commit | 0040c699350757e2c8a547fc930dfbbc1870694e (patch) | |
tree | 607d252870b84fd4c8bf22f2672fd71de8eb7026 | |
parent | 49a603733dd9e40191c8d37733a100028faaa6d0 (diff) | |
download | aur-0040c699350757e2c8a547fc930dfbbc1870694e.tar.gz |
Build with meson, update to 1.9.2.r1.g5263782-1
-rw-r--r-- | .SRCINFO | 10 | ||||
-rw-r--r-- | PKGBUILD | 35 |
2 files changed, 27 insertions, 18 deletions
@@ -1,13 +1,19 @@ +# Generated by mksrcinfo v8 +# Wed May 15 09:53:34 UTC 2019 pkgbase = graphene-git pkgdesc = A thin layer of graphic data types - pkgver = 1.2.3.566.2256b8c + pkgver = 1.9.2.r1.g5263782 pkgrel = 1 url = https://github.com/ebassi/graphene/ arch = i686 arch = x86_64 license = MIT + makedepends = git + makedepends = gtk-doc + makedepends = gobject-introspection + makedepends = meson depends = glib2 - provides = graphene=1.2.3.566.2256b8c + provides = graphene=1.9.2.r1.g5263782 conflicts = graphene source = git+https://github.com/ebassi/graphene.git md5sums = SKIP @@ -1,39 +1,42 @@ -# Maintainer: Lubosz Sarnecki <lubosz@gmail.com> - +# Maintainer: Shengyu Zhang <la@archlinuxcn.org> +# Contributor: Lubosz Sarnecki <lubosz@gmail.com> + _realname='graphene' pkgname="$_realname-git" -pkgver=1.2.3.566.2256b8c +pkgver=1.9.2.r1.g5263782 pkgrel=1 pkgdesc='A thin layer of graphic data types' arch=('i686' 'x86_64') url='https://github.com/ebassi/graphene/' depends=('glib2') +makedepends=('git' 'gtk-doc' 'gobject-introspection' 'meson') provides=("$_realname="$pkgver) conflicts=("$_realname") license=('MIT') - source=('git+https://github.com/ebassi/graphene.git') md5sums=('SKIP') - + subver() { PREFIX="m4_define(\[graphene_$1_version\], \[" echo $(grep "$PREFIX" configure.ac | eval sed "'s/$PREFIX//'" | sed 's/\])//') } - + pkgver() { cd $_realname - hash=$(git log --pretty=format:'%h' -n 1) - revision=$(git rev-list --count HEAD) - echo $(subver major).$(subver minor).$(subver micro).$revision.$hash + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } - + build() { - cd $_realname - ./autogen.sh --prefix=/usr - make + arch-meson $_realname build -D gtk_doc=true + ninja -C build +} + +check() { + meson test -C build } - + package() { - cd $_realname - make DESTDIR="$pkgdir" install + DESTDIR="$pkgdir" meson install -C build + install -Dt "$pkgdir/usr/share/licenses/$_realname" -m644 $_realname/LICENSE + rm -r "$pkgdir"/usr/{lib,share}/installed-tests } |