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

Andrea Scarpino andrea at archlinux.org
Thu Apr 8 13:42:51 UTC 2010


    Date: Thursday, April 8, 2010 @ 09:42:51
  Author: andrea
Revision: 76156

removed useless cmake LINKER_FLAGS; use package() function

Modified:
  opengtl/trunk/PKGBUILD

----------+
 PKGBUILD |   15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-04-08 13:41:17 UTC (rev 76155)
+++ PKGBUILD	2010-04-08 13:42:51 UTC (rev 76156)
@@ -1,3 +1,4 @@
+# $Id: $
 # Maintainer: Ronald van Haren <ronald.archlinux.org>
 # Contributor: Andries Radu <admiral0 at live.it>
 
@@ -4,8 +5,7 @@
 pkgname=opengtl
 pkgver=0.9.12
 pkgrel=3
-pkgdesc="A set of library for using and integrating transformation algorithms (such as filter or color conversion) in 
-graphics applications."
+pkgdesc="A set of library for using and integrating transformation algorithms (such as filter or color conversion) in graphics applications"
 url="http://www.opengtl.org"
 arch=('i686' 'x86_64')
 license=('GPL')
@@ -14,15 +14,18 @@
 source=(http://www.opengtl.org/download/OpenGTL-${pkgver}.tar.bz2)
 md5sums=('c45fddf10c922ebcf9cb5b7c5df89220')
 
-
 build() {
-  install -d ${srcdir}/build
-  cd ${srcdir}/build || return 1
+  cd ${srcdir}
+  mkdir build
+  cd build
   cmake ../OpenGTL-${pkgver} \
                 -DCMAKE_BUILD_TYPE=Release \
                 -DCMAKE_SKIP_RPATH=ON \
-                -DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed' \
 		-DCMAKE_INSTALL_PREFIX=/usr || return 1
   make || return 1
+}
+
+package() {
+  cd ${srcdir}/build
   make DESTDIR=${pkgdir} install
 }




More information about the arch-commits mailing list