diff options
author | FabioLolix | 2017-12-21 11:55:35 +0100 |
---|---|---|
committer | FabioLolix | 2017-12-21 11:55:35 +0100 |
commit | d66223a1eb3cda6c5937db4b9ebf141c44c97ca7 (patch) | |
tree | 01dbd0f7e5a1f8aa974407a5cb0ea0d1eed353f6 | |
download | aur-thunarx-python-0.3.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | PKGBUILD | 30 | ||||
-rw-r--r-- | python2.patch | 25 |
3 files changed, 76 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..1f306a5b35e4 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = thunarx-python-0.3 + pkgdesc = Thunarx python bindings, legacy version for Thunar Gtk2 + pkgver = 0.3.0 + pkgrel = 1 + url = http://rabbitvcs.org/ + arch = i686 + arch = x86_64 + license = GPL + depends = python2 + depends = thunar>=0.4.0 + depends = pygtk>=2.6.0 + depends = python2-gobject2 + provides = thunarx-python + conflicts = thunarx-python + source = http://archive.xfce.org/src/bindings/thunarx-python/0.3/thunarx-python-0.3.0.tar.bz2 + source = python2.patch + md5sums = 86a28c4c34cae534f2793133b4755794 + md5sums = 6144a91d626ad14b52723edc471369c2 + +pkgname = thunarx-python-0.3 + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..e499b70a41f6 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Fabio Loli <loli_fabio@protonmail.com> +# Contributor: D. Can Celasun <dcelasun[at]gmail[dot]com> +# Contributor: Dmitry Batenkov <dima dot batenkov at gmail dot com> + +pkgname=thunarx-python-0.3 +_pkgname=thunarx-python +pkgver=0.3.0 +pkgrel=1 +pkgdesc="Thunarx python bindings, legacy version for Thunar Gtk2" +arch=('i686' 'x86_64') +url="http://rabbitvcs.org/" +depends=('python2' 'thunar>=0.4.0' 'pygtk>=2.6.0' 'python2-gobject2') +provides=('thunarx-python') +conflicts=('thunarx-python') +license=('GPL') +source=("http://archive.xfce.org/src/bindings/thunarx-python/0.3/${_pkgname}-${pkgver}.tar.bz2" 'python2.patch') +md5sums=('86a28c4c34cae534f2793133b4755794' + '6144a91d626ad14b52723edc471369c2') +build(){ + cd "${srcdir}"/${_pkgname}-${pkgver} + patch -p1 -i $srcdir/python2.patch + PYTHON=python2 ./configure + make +} + +package() { + cd "${srcdir}"/${_pkgname}-${pkgver} + make DESTDIR=${pkgdir} install +} + diff --git a/python2.patch b/python2.patch new file mode 100644 index 000000000000..831a6e509c72 --- /dev/null +++ b/python2.patch @@ -0,0 +1,25 @@ +diff -aur package.pristine/configure package.new/configure +--- package.pristine/configure 2011-03-12 23:12:15.000000000 +0200 ++++ package.new/configure 2011-03-12 23:21:31.000000000 +0200 +@@ -13307,9 +13307,9 @@ + fi + + +-PYTHON_CFLAGS="`python-config --includes`" +-PYTHON_LIBS="`python-config --libs`" +-PYTHON_LDFLAGS="`python-config --ldflags`" ++PYTHON_CFLAGS="`python2-config --includes`" ++PYTHON_LIBS="`python2-config --libs`" ++PYTHON_LDFLAGS="`python2-config --ldflags`" + + + +@@ -13339,7 +13339,7 @@ + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pygtk codegen" >&5 + $as_echo_n "checking for pygtk codegen... " >&6; } +-PYGTK_CODEGEN="/usr/bin/python `$PKG_CONFIG --variable=codegendir pygobject-2.0`/codegen.py" ++PYGTK_CODEGEN="$PYTHON `$PKG_CONFIG --variable=codegendir pygobject-2.0`/codegen.py" + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYGTK_CODEGEN" >&5 + $as_echo "$PYGTK_CODEGEN" >&6; } |