[arch-commits] Commit in harfbuzz/trunk (PKGBUILD)
Jan Steffens
heftig at archlinux.org
Tue Oct 11 18:24:00 UTC 2016
Date: Tuesday, October 11, 2016 @ 18:23:59
Author: heftig
Revision: 278273
1.3.2-1
Modified:
harfbuzz/trunk/PKGBUILD
----------+
PKGBUILD | 28 ++++++++++++++++++----------
1 file changed, 18 insertions(+), 10 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2016-10-11 18:21:44 UTC (rev 278272)
+++ PKGBUILD 2016-10-11 18:23:59 UTC (rev 278273)
@@ -3,26 +3,34 @@
pkgbase=(harfbuzz)
pkgname=(harfbuzz harfbuzz-icu)
-pkgver=1.3.1
+pkgver=1.3.2
pkgrel=1
pkgdesc="OpenType text shaping engine"
+url="http://www.freedesktop.org/wiki/Software/HarfBuzz"
arch=(i686 x86_64)
-url="http://www.freedesktop.org/wiki/Software/HarfBuzz"
license=(MIT)
-makedepends=(glib2 freetype2 graphite cairo icu gobject-introspection gtk-doc ragel)
-source=(http://www.freedesktop.org/software/harfbuzz/release/${pkgbase}-${pkgver}.tar.bz2)
-sha256sums=('a242206dd119d5e6cc1b2253c116abbae03f9d930cb60b515fb0d248decf89a1')
+makedepends=(glib2 freetype2 graphite cairo icu gobject-introspection gtk-doc ragel git
+ python2)
+_commit=f73a87d9a8c76a181794b74b527ea268048f78e3 # tags/1.3.2^0
+source=("git+https://github.com/behdad/harfbuzz#commit=$_commit")
+sha256sums=('SKIP')
+pkgver() {
+ cd $pkgbase
+ git describe --tags | sed 's/-/+/g'
+}
+
prepare() {
mkdir path
ln -s /usr/bin/python2 path/python
- cd $pkgbase-$pkgver
+ cd $pkgbase
+ sed -i '1s/python$/&2/' test/shaping/hb-unicode-encode
NOCONFIGURE=1 ./autogen.sh
}
build() {
- cd $pkgbase-$pkgver
+ cd $pkgbase
CFLAGS+=' -DNDEBUG'
CXXFLAGS+=' -DNDEBUG'
./configure --prefix=/usr \
@@ -32,7 +40,7 @@
}
check() {
- cd $pkgbase-$pkgver
+ cd $pkgbase
PATH="$srcdir/path:$PATH" make check
}
@@ -40,7 +48,7 @@
depends=(glib2 freetype2 graphite)
optdepends=('cairo: hb-view program')
- cd $pkgbase-$pkgver
+ cd $pkgbase
make DESTDIR="$pkgdir" install
install -Dm644 COPYING "$pkgdir/usr/share/licenses/harfbuzz/COPYING"
@@ -57,5 +65,5 @@
mv hb-icu/* "$pkgdir"
- install -Dm644 $pkgbase-$pkgver/COPYING "$pkgdir/usr/share/licenses/harfbuzz-icu/COPYING"
+ install -Dm644 $pkgbase/COPYING "$pkgdir/usr/share/licenses/harfbuzz-icu/COPYING"
}
More information about the arch-commits
mailing list