[add] python2-xlib-svn

This commit is contained in:
Carsten Teibes 2014-06-02 20:22:37 +02:00
commit 1cf6b0f688
2 changed files with 54 additions and 0 deletions

17
.SRCINFO Normal file
View file

@ -0,0 +1,17 @@
pkgbase = python2-xlib-svn
pkgdesc = A fully functional X client library for Python programs (development version)
pkgver = 0.15rc1.r171
pkgrel = 1
url = http://python-xlib.sourceforge.net/
arch = any
license = GPL
makedepends = subversion
depends = python2
depends = libx11
provides = python2-xlib
conflicts = python2-xlib
source = python2-xlib-svn::svn+https://svn.code.sf.net/p/python-xlib/code/trunk
md5sums = SKIP
pkgname = python2-xlib-svn

37
PKGBUILD Normal file
View file

@ -0,0 +1,37 @@
# Maintainer: carstene1ns <url/mail: arch carsten-teibes de>
# Contributor: Thomas Haider <t.haider@deprecate.de>
pkgname=python2-xlib-svn
pkgver=0.15rc1.r171
pkgrel=1
pkgdesc="A fully functional X client library for Python programs (development version)"
arch=("any")
url="http://python-xlib.sourceforge.net/"
license=('GPL')
depends=('python2' 'libx11')
makedepends=('subversion')
provides=('python2-xlib')
conflicts=('python2-xlib')
source=($pkgname::"svn+https://svn.code.sf.net/p/python-xlib/code/trunk")
md5sums=('SKIP')
pkgver() {
cd $pkgname
# get the version directly from package
local _ver=$(python2 -ESc "import Xlib; print Xlib.__version_string__")
local _rev=$(svnversion | tr -d [A-z])
printf "%s.r%s" "$_ver" "$_rev"
}
build() {
cd $pkgname
python2 setup.py build
}
package() {
cd $pkgname
python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
}