Date: Wednesday, April 23, 2014 @ 22:50:06
  Author: heftig
Revision: 211716

Fix build FS#40043

Modified:
  ftgl/trunk/PKGBUILD

----------+
 PKGBUILD |   12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2014-04-23 20:12:34 UTC (rev 211715)
+++ PKGBUILD    2014-04-23 20:50:06 UTC (rev 211716)
@@ -6,7 +6,7 @@
 pkgname=ftgl
 _pkgver=2.1.3-rc5
 pkgver=${_pkgver/-/}
-pkgrel=5
+pkgrel=6
 pkgdesc="OpenGL library to use arbitrary fonts"
 arch=(i686 x86_64)
 url="http://ftgl.wiki.sourceforge.net/";
@@ -16,15 +16,19 @@
 source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$_pkgver.tar.bz2";)
 md5sums=('c7879018cde844059495b3029b0b6503')
 
+prepare() {
+  cd $pkgname-${_pkgver/-/\~}
+  sed -i '/^SUBDIRS =/s/demo//' Makefile.in
+}
+
 build() {
-  cd "$srcdir/$pkgname-${_pkgver/-/~}"
-  sed -i '/^SUBDIRS =/s/demo//' Makefile.in
+  cd $pkgname-${_pkgver/-/\~}
   ./configure --prefix=/usr --with-pic --disable-static
   make
 }
 
 package() {
-  cd "$srcdir/$pkgname-${_pkgver/-/~}"
+  cd $pkgname-${_pkgver/-/\~}
   make DESTDIR="$pkgdir" install
 
   # FS#23283: install missing headers for OpenCascade

Reply via email to