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

Alexander Rødseth arodseth at nymeria.archlinux.org
Fri Mar 14 15:02:30 UTC 2014


    Date: Friday, March 14, 2014 @ 16:02:30
  Author: arodseth
Revision: 107206

Only some patches applies. Work in progress.

Modified:
  tint2/trunk/PKGBUILD

----------+
 PKGBUILD |   18 ++++++++++++++----
 1 file changed, 14 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-03-14 14:48:01 UTC (rev 107205)
+++ PKGBUILD	2014-03-14 15:02:30 UTC (rev 107206)
@@ -37,9 +37,16 @@
 prepare() {
   cd "$pkgname-$pkgver"
 
-  # various patches (used by tint2-svn, and by request from users)
-  for f in ../*.patch; do
-    patch -Np0 -i $f
+  # making all the patches apply is a work in progress
+  for f in "$srcdir"/*.patch; do
+    echo
+    echo "--- ${f##*/} ---"
+    echo
+    if [[ ${f##*/} == add-power-now-support.patch ]]; then
+      patch -Np2 -i $f && echo "${f##*/} OK!"
+    else
+      patch -Np1 -i $f && echo "${f##*/} OK!"
+    fi
   done
 
   # python2 fix
@@ -52,7 +59,10 @@
 
   mkdir -p build
   cd build
-  cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib
+  cmake .. \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_INSTALL_LIBDIR=lib \
+    -DENABLE_TINT2CONF=0
   make 
 }
 




More information about the arch-commits mailing list