[arch-commits] Commit in graphene/trunk (PKGBUILD)

Jan Steffens heftig at archlinux.org
Thu Mar 2 20:48:07 UTC 2017


    Date: Thursday, March 2, 2017 @ 20:48:06
  Author: heftig
Revision: 289895

1.6.0-1

Modified:
  graphene/trunk/PKGBUILD

----------+
 PKGBUILD |   35 ++++++++++++++++++++---------------
 1 file changed, 20 insertions(+), 15 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-03-02 17:12:02 UTC (rev 289894)
+++ PKGBUILD	2017-03-02 20:48:06 UTC (rev 289895)
@@ -2,7 +2,7 @@
 # Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
  
 pkgname=graphene
-pkgver=1.4.0
+pkgver=1.6.0
 pkgrel=1
 pkgdesc="A thin layer of graphic data types"
 url="https://github.com/ebassi/graphene"
@@ -9,32 +9,37 @@
 arch=(i686 x86_64)
 license=(MIT)
 depends=(glib2)
-makedepends=(git gtk-doc gobject-introspection)
-source=("git+$url#tag=$pkgver")
-md5sums=('SKIP')
+makedepends=(git gtk-doc gobject-introspection meson)
+_commit=aa40018fa12905d024b85293ef49bfc7af1b5627  # tags/1.6.0^0
+source=("git+https://github.com/ebassi/graphene#commit=$_commit")
+sha256sums=('SKIP')
 
-_confargs=
-[[ $CARCH == i686 ]] && _confargs=--disable-sse2
+pkgver() {
+  cd $pkgname
+  git describe --tags | sed 's/-/+/g'
+}
 
 prepare() {
+  mkdir build
   cd $pkgname
-  sed -i '1s/python$/&2/' build/identfilter.py
-  NOCONFIGURE=1 ./autogen.sh
 }
  
 build() {
-  cd $pkgname
-  ./configure --prefix=/usr --enable-gtk-doc $_confargs
-  make
+  cd build
+  export LANG=en_US.UTF-8
+  meson --prefix=/usr --buildtype=plain ../$pkgname --libexecdir=/usr/lib -Denable-gtk-doc=true
+  ninja
 }
 
 check() {
-  cd $pkgname
-  make check
+  cd build
+  ninja test
 }
  
 package() {
-  cd $pkgname
-  make DESTDIR="$pkgdir" install
+  cd build
+  DESTDIR="$pkgdir" ninja install
+
+  cd ../$pkgname
   install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }


More information about the arch-commits mailing list