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

Alexander Rødseth arodseth at archlinux.org
Sun Aug 2 14:57:42 UTC 2015


    Date: Sunday, August 2, 2015 @ 16:57:42
  Author: arodseth
Revision: 137705

upgpkg: tint2 0.12.1-1

Modified:
  tint2/trunk/PKGBUILD

----------+
 PKGBUILD |   42 +++++++++++++++---------------------------
 1 file changed, 15 insertions(+), 27 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-08-02 14:50:45 UTC (rev 137704)
+++ PKGBUILD	2015-08-02 14:57:42 UTC (rev 137705)
@@ -5,50 +5,38 @@
 # Contributor: Stefan Husmann< stefan-husmann at t-online.de>
 
 pkgname=tint2
-pkgver=0.11
-pkgrel=8
+pkgver=0.12.1
+pkgrel=1
 pkgdesc='Basic, good-looking task manager for WMs'
 arch=('x86_64' 'i686')
-url='http://code.google.com/p/tint2/'
+url='https://gitlab.com/o9000/tint2'
 license=('GPL2')
-conflicts=('ttm-svn' 'tint')
-replaces=('tint')
-depends=('gtk2' 'imlib2')
+conflicts=('ttm-svn')
+depends=('gtk2' 'imlib2' 'startup-notification')
 optdepends=('pygtk: for tint2wizard' 'python2')
-makedepends=('pygtk' 'cmake' 'python2')
-provides=('tint')
-source=("http://tint2.googlecode.com/files/tint2-$pkgver.tar.bz2"
-        'add-power-now-support.patch'
-        'clock.patch'
-        'launcher_apps_dir-v2.patch'
-        'src-task-align.patch'
+makedepends=('pygtk' 'cmake' 'python2' 'startup-notification' 'git')
+source=("$pkgname-$pkgver.tgz::https://gitlab.com/o9000/tint2/repository/archive.tar.gz?ref=$pkgver"
         'zombie-fix.patch')
-md5sums=('6fc5731e7425125fa84a2add5cef4bff'
-         '448beead6c9d44b864f99e08a027cb56'
-         'bc0bab2979dacff551a97bdf2c2fdedc'
-         '13218765dd684ae825967d3ffb4f4a75'
-         'f0d7f51ec8dbf2e7b6bcca942f0fd6c0'
+md5sums=('f34335906d5eb3bf86ac6a162dc88513'
          'cdb83cd911e005a3529e5d1cd952a956')
 
 prepare() {
-  cd "$pkgname-$pkgver"
+  cd "$pkgname.git"
 
-  # Applying all patches, even some that only applies partially.
-  # Tint2 works fine with these, but a new release from upstream would be nice.
+  # Applying all available patches
   for f in ../*.patch; do
-    echo -e "--- ${f##*/} ---\n"
+    echo -e "--- ${f##*/} ---"
     patch -Np1 -i $f && echo "${f##*/} OK!" || echo "${f##*/} FAILED!"
-    echo
   done
 
-  # python2 fix
-  sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' src/tint2conf/tintwizard.py
+  # Fix for Python 2
   sed -i 's_python _python2 _' src/tint2conf/main.c
 }
 
 build() {
-  cd "$pkgname-$pkgver"
+  cd "$pkgname.git"
 
+  msg2 'Compiling...'
   mkdir -p build
   cd build
   cmake .. \
@@ -58,7 +46,7 @@
 }
 
 package() {
-  make -C "$pkgname-$pkgver/build" DESTDIR="$pkgdir" install
+  make -C "$pkgname.git/build" DESTDIR="$pkgdir" install
 }
 
 # vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list