summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorLink Satonaka2016-01-27 21:31:48 -0500
committerLink Satonaka2016-01-27 21:31:48 -0500
commit5b10081b2afabcd460a4273f07f4fda0c943c375 (patch)
tree528a4545e6d226e7f1613009d158a01b6f609dd2
parentf8f5561f57787fb90c52fb5ab6423ebd656b6b60 (diff)
downloadaur-5b10081b2afabcd460a4273f07f4fda0c943c375.tar.gz
use package function
-rw-r--r--PKGBUILD23
1 files changed, 9 insertions, 14 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 7c844c7c013..ad2ce9fad52 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,9 +1,8 @@
-# Contributor: Colin Shea <colin@shea.at>
-# Maintainer: Colin Shea <colin@shea.at>
+# Maintainer: Aelius (find me on Freenode)
pkgname=gdevilspie
pkgver=0.5
-pkgrel=2
+pkgrel=3
pkgdesc="pyGTK interface to devilspie"
arch=('i686' 'x86_64')
url="http://code.google.com/p/gdevilspie"
@@ -12,22 +11,18 @@ depends=('pygtk' 'devilspie' 'python2-wnck' 'python2' 'python2-xdg')
makedepends=()
source=(http://gdevilspie.googlecode.com/files/$pkgname-$pkgver.tar.bz2
xdg_basedirectory.patch)
-
md5sums=('aab8eecb47599467c65c77d3eddb2d5c'
'e810b4c7371874931f234d2b8836d3eb')
-sha256sums=('e03ab813e56b6dc6d868db7c318d280c9864cfa6e8a4ca84a5bb5d05542f55ff'
- 'b8d287159b14a779c4fed525d010ad4a907eacd392e9409a2c199a4350342c89')
-
-build() {
+prepare() {
cd "$srcdir/$pkgname-$pkgver"
-
- mkdir -p $pkgdir/usr
-
- # Fix XDG & the she-bang
patch -p1 -i $srcdir/xdg_basedirectory.patch
+}
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
python2 setup.py install --prefix $pkgdir/usr
+ install -m644 -D COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING
+ install -m644 -D README $pkgdir/usr/share/doc/$pkgname/README
+ install -m644 -D gdevilspie.desktop $pkgdir/usr/share/xsessions/gdevilspie.desktop
}
-
-# vim:set ts=2 sw=2 et: