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

Andrea Scarpino andrea at archlinux.org
Sun Jan 17 14:10:48 EST 2010


    Date: Sunday, January 17, 2010 @ 14:10:47
  Author: andrea
Revision: 63535

cleanup build

Modified:
  scribus/trunk/PKGBUILD

----------+
 PKGBUILD |   22 +++++++++++++---------
 1 file changed, 13 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-01-17 19:10:29 UTC (rev 63534)
+++ PKGBUILD	2010-01-17 19:10:47 UTC (rev 63535)
@@ -16,22 +16,26 @@
          'desktop-file-utils' 'shared-mime-info')
 makedepends=('cmake')
 options=(!libtool !makeflags)
-source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.bz2)
+source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.bz2)
 md5sums=('4cadca0c780491ad61dc2d815776f10b')
 
 build() {
-  cd ${srcdir}/scribus-${pkgver}
-  cmake . -DCMAKE_INSTALL_PREFIX:PATH=/usr \
-          -DCMAKE_BUILD_TYPE=Release \
-          -DCMAKE_SKIP_RPATH=ON \
-          -DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--as-needed' \
-	  -DWANT_CAIRO=1 -DLIB_SUFFIX="" 
+  cd ${srcdir}
+  mkdir build
+  cd build
+  cmake ../${pkgname}-${pkgver} \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DCMAKE_SKIP_RPATH=ON \
+    -DWANT_CAIRO=1 \
+    -DLIB_SUFFIX=""
   make || return 1
   make DESTDIR=${pkgdir} install
 
   # fix icon path in .desktop file
-  sed -i 's|Icon=scribus|Icon=/usr/share/scribus/icons/scribus.png|' scribus.desktop
+  sed -i 's|Icon=scribus|Icon=/usr/share/scribus/icons/scribus.png|' \
+    ${srcdir}/${pkgname}-${pkgver}/scribus.desktop
 
-  install -Dm644 scribus.desktop \
+  install -Dm644 ${srcdir}/${pkgname}-${pkgver}/scribus.desktop \
     ${pkgdir}/usr/share/applications/scribus.desktop
 }



More information about the arch-commits mailing list