From 46da3e36725d47f8ac09ff150223ad953ec885c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Chr=C3=A9tien?= Date: Sat, 1 Feb 2014 21:21:37 +0100 Subject: [PATCH] Add openni2 with pkg-config file + metapod + cpplog + updates --- .SRCINFO | 8 +++++--- PKGBUILD | 21 +++++++++++++++------ 2 files changed, 20 insertions(+), 9 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index b10ffb453e0d..d712dabfbd8c 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,6 +1,6 @@ pkgbase = python2-mpldatacursor-git pkgdesc = Interactive data cursors (clickable annotation boxes) for matplotlib. - pkgver = 20140121 + pkgver = 0.4.0.r26.g1738e4b pkgrel = 1 url = https://github.com/joferkington/mpldatacursor arch = i686 @@ -8,8 +8,10 @@ pkgbase = python2-mpldatacursor-git license = MIT depends = python2-matplotlib>=0.9 depends = python2-numpy>=1.1 - source = python2-mpldatacursor-git::git://github.com/joferkington/mpldatacursor.git - sha1sums = SKIP + provides = python2-mpldatacursor + conflicts = python2-mpldatacursor + source = mpldatacursor::git+https://github.com/joferkington/mpldatacursor.git#branch=master + md5sums = SKIP pkgname = python2-mpldatacursor-git diff --git a/PKGBUILD b/PKGBUILD index a76e64749cbd..3ec77ce31453 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -2,26 +2,35 @@ # Maintainer: Benjamin Chretien pkgname=python2-mpldatacursor-git -pkgver=20140121 +pkgver=0.4.0.r26.g1738e4b pkgrel=1 pkgdesc="Interactive data cursors (clickable annotation boxes) for matplotlib." arch=('i686' 'x86_64') url='https://github.com/joferkington/mpldatacursor' license=('MIT') depends=('python2-matplotlib>=0.9' 'python2-numpy>=1.1') -source=("$pkgname"::'git://github.com/joferkington/mpldatacursor.git') -sha1sums=('SKIP') +provides=('python2-mpldatacursor') +conflicts=('python2-mpldatacursor') + +_gitroot=https://github.com/joferkington +_gitrepo=mpldatacursor + +_branch=master +_dir=${_gitrepo} +source=("${_dir}"::"git+${_gitroot}/${_gitrepo}.git"#branch=${_branch}) +md5sums=('SKIP') pkgver() { - date +%Y%m%d + cd "$srcdir/${_dir}" + git describe --long | sed -E 's/^v//;s/([^-]*-g)/r\1/;s/-/./g' } build() { - cd ${srcdir}/${pkgname} + cd ${srcdir}/${_dir} python2 setup.py build } package() { - cd ${srcdir}/${pkgname} + cd ${srcdir}/${_dir} python2 setup.py install -O1 --skip-build --root "${pkgdir}" --prefix=/usr }