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

Alexander Rødseth arodseth at archlinux.org
Mon Aug 3 11:41:47 UTC 2015


    Date: Monday, August 3, 2015 @ 13:41:47
  Author: arodseth
Revision: 137813

FS#45875, python is no longer needed

Also switching over to Ninja.

Modified:
  tint2/trunk/PKGBUILD

----------+
 PKGBUILD |   27 +++++++++++----------------
 1 file changed, 11 insertions(+), 16 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-08-03 11:23:08 UTC (rev 137812)
+++ PKGBUILD	2015-08-03 11:41:47 UTC (rev 137813)
@@ -6,7 +6,7 @@
 
 pkgname=tint2
 pkgver=0.12.1
-pkgrel=1
+pkgrel=2
 pkgdesc='Basic, good-looking task manager for WMs'
 arch=('x86_64' 'i686')
 url='https://gitlab.com/o9000/tint2'
@@ -13,12 +13,11 @@
 license=('GPL2')
 conflicts=('ttm-svn')
 depends=('gtk2' 'imlib2' 'startup-notification')
-optdepends=('pygtk: for tint2wizard' 'python2')
-makedepends=('pygtk' 'cmake' 'python2' 'startup-notification' 'git')
+makedepends=('cmake' 'startup-notification' 'git' 'ninja')
 source=("$pkgname-$pkgver.tgz::https://gitlab.com/o9000/tint2/repository/archive.tar.gz?ref=$pkgver"
         'zombie-fix.patch')
-md5sums=('f34335906d5eb3bf86ac6a162dc88513'
-         'cdb83cd911e005a3529e5d1cd952a956')
+sha256sums=('097131b0c6bb2d7e366e0b15ba0a9174e826dc03e4eace004f5e66a29a5ac8bc'
+            'a1e942ca3bef05885989f899c0eaaf63f538f7b84cb43d1517d5d39aa64a4ef9')
 
 prepare() {
   cd "$pkgname.git"
@@ -28,25 +27,21 @@
     echo -e "--- ${f##*/} ---"
     patch -Np1 -i $f && echo "${f##*/} OK!" || echo "${f##*/} FAILED!"
   done
-
-  # Fix for Python 2
-  sed -i 's_python _python2 _' src/tint2conf/main.c
 }
 
 build() {
   cd "$pkgname.git"
 
-  msg2 'Compiling...'
-  mkdir -p build
-  cd build
-  cmake .. \
-    -DCMAKE_INSTALL_PREFIX=/usr \
-    -DENABLE_TINT2CONF=1
-  make 
+  # Generating Ninja project files
+  mkdir -p build && cd build
+  cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DENABLE_TINT2CONF=1 -G Ninja
+
+  # Compiling
+  ninja 
 }
 
 package() {
-  make -C "$pkgname.git/build" DESTDIR="$pkgdir" install
+  DESTDIR="$pkgdir" ninja -C "$pkgname.git/build" install
 }
 
 # vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list