diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/terminator/PKGBUILD |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/terminator/PKGBUILD')
-rw-r--r-- | community/terminator/PKGBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/community/terminator/PKGBUILD b/community/terminator/PKGBUILD new file mode 100644 index 000000000..3a0b50d10 --- /dev/null +++ b/community/terminator/PKGBUILD @@ -0,0 +1,40 @@ +# $Id: PKGBUILD 39486 2011-02-10 18:34:49Z ibiru $ +# Contributor: Allan McRae <allan@archlinux.org> +# Contributor: fancris3 <fancris3 at gmail.com> +# Maintainer: Daniel J Griffiths <ghost1227@archlinux.us> + +pkgname=terminator +pkgver=0.95 +pkgrel=4 +pkgdesc='an application that provides lots of terminals in a single window' +arch=('i686' 'x86_64') +url='http://www.tenshu.net/terminator/' +license=('GPL2') +depends=('vte' 'pygtk' 'xdg-utils') +makedepends=('desktop-file-utils' 'gettext' 'intltool') +install=terminator.install +source=("https://launchpad.net/terminator/trunk/${pkgver}/+download/${pkgname}_${pkgver}.tar.gz") +md5sums=('ceae5c899c71b9c80e48083c17a631ad') + +build() { + cd ${pkgname}-${pkgver} + + # python2 fix + for file in terminatorlib/{,plugins/}*.py; do + sed -i 's_#!/usr/bin/python_#!/usr/bin/python2_' $file + sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' $file + done + + python2 setup.py build +} + +package() { + cd ${pkgname}-${pkgver} + + python2 setup.py install --skip-build --root=${pkgdir} + + rm -f ${pkgdir}/usr/share/applications/${pkgname}.desktop + rm -f ${pkgdir}/usr/share/icons/hicolor/icon-theme.cache + install -D -m644 ${srcdir}/${pkgname}-${pkgver}/data/${pkgname}.desktop.in ${pkgdir}/usr/share/applications/${pkgname}.desktop + sed -i 's|_||' ${pkgdir}/usr/share/applications/${pkgname}.desktop +} |