summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorBalló György2020-03-16 00:48:07 +0100
committerBalló György2020-03-16 00:48:07 +0100
commit7f5e33c50dd6f29ad262564be3649108f86b133c (patch)
tree95cffc2f656afde3783ef2b013d08dd24128c8ad /PKGBUILD
downloadaur-pyneighborhood.tar.gz
Move from [community]
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d5667eea6c2
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Ronald van Haren <ronald.archlinux.org>
+# Contributor: Ronald van Haren <ronald.archlinux.org>
+
+pkgname=pyneighborhood
+pkgver=0.5.4
+pkgrel=4
+pkgdesc="A GTK+ 2 rewrite of the well-known LinNeighborhood tool"
+license=('GPL')
+url="https://launchpad.net/pyneighborhood"
+source=("https://launchpad.net/pyneighborhood/0.5/${pkgver}/+download/${pkgname}-${pkgver}.tar.bz2"{,.asc}
+ "pkexec.patch")
+depends=('pygtk' 'smbclient')
+optdepends=('polkit: mount/unmount Samba shares')
+arch=('any')
+options=('!emptydirs')
+sha1sums=('b0d899230ed0212aa50c17f406b0ee7e3d6ac17a'
+ 'SKIP'
+ 'c23d054b2309fcc012f98e7274e6fd2e09d2f9a6')
+validpgpkeys=('E188933BBC00723A9DB00CD31398E68B6F33567E') # Stefan J. Betz <info@stefan-betz.net>
+
+prepare() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+
+ # python2 fix
+ for file in $(find . -type f -print); do
+ sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' $file
+ sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file
+ done
+
+ # Use pkexec to mount/unmount Samba shares
+ patch -Np1 -i ../pkexec.patch
+}
+
+package() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+ make PYTHON=python2 DESTDIR=${pkgdir}/usr install
+}