mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-01-17 23:34:07 +00:00
Created a split package for wiringX
python-wiringx-git and python2-wiringx-git deleted and combined with wiringx-git
This commit is contained in:
parent
c4f9a31b57
commit
4e7c66e5d8
3 changed files with 20 additions and 81 deletions
|
@ -1,34 +0,0 @@
|
|||
# Maintainer: Paul Adams <paul@thoughtcriminal.co.uk>
|
||||
|
||||
buildarch=20
|
||||
|
||||
pkgname=python-wiringx-git
|
||||
pkgver=r68.4492e00
|
||||
pkgrel=1
|
||||
pkgdesc="Python bindings for wiringX"
|
||||
arch=('arm')
|
||||
url="http://www.wiringx.org"
|
||||
license=('GPL')
|
||||
groups=()
|
||||
depends=('python')
|
||||
makedepends=('git')
|
||||
provides=()
|
||||
conflicts=()
|
||||
replaces=()
|
||||
backup=()
|
||||
options=(!emptydirs)
|
||||
install=
|
||||
source=(${pkgname}::git+https://github.com/wiringX/wiringX)
|
||||
md5sums=('SKIP')
|
||||
|
||||
pkgver() {
|
||||
cd "${pkgname}"
|
||||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${pkgname}/python"
|
||||
python setup.py install --root="$pkgdir/" --optimize=1
|
||||
}
|
||||
|
||||
# vim:set ts=2 sw=2 et:
|
|
@ -1,34 +0,0 @@
|
|||
# Maintainer: Paul Adams <paul@thoughtcriminal.co.uk>
|
||||
|
||||
buildarch=20
|
||||
|
||||
pkgname=python2-wiringx-git
|
||||
pkgver=r68.4492e00
|
||||
pkgrel=1
|
||||
pkgdesc="Python2 bindings for wiringX"
|
||||
arch=('arm')
|
||||
url="http://www.wiringx.org"
|
||||
license=('GPL')
|
||||
groups=()
|
||||
depends=('python2')
|
||||
makedepends=('git')
|
||||
provides=()
|
||||
conflicts=()
|
||||
replaces=()
|
||||
backup=()
|
||||
options=(!emptydirs)
|
||||
install=
|
||||
source=(${pkgname}::git+https://github.com/wiringX/wiringX)
|
||||
md5sums=('SKIP')
|
||||
|
||||
pkgver() {
|
||||
cd "${pkgname}"
|
||||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${pkgname}/python"
|
||||
python2 setup.py install --root="$pkgdir/" --optimize=1
|
||||
}
|
||||
|
||||
# vim:set ts=2 sw=2 et:
|
|
@ -2,24 +2,15 @@
|
|||
|
||||
buildarch=20
|
||||
|
||||
pkgname=wiringx-git
|
||||
pkgver=r66.aad47d9
|
||||
pkgname=('wiringx-git' 'python-wiringx-git' 'python2-wiringx-git')
|
||||
pkgver=r87.6ae11ce
|
||||
pkgrel=1
|
||||
pkgdesc="wiringX is a modular GPIO interface, derived from wiringPi"
|
||||
arch=('arm')
|
||||
url="http://wiringx.org"
|
||||
license=('GPL')
|
||||
groups=()
|
||||
depends=('glibc')
|
||||
makedepends=('git' 'cmake' 'sed')
|
||||
provides=()
|
||||
conflicts=()
|
||||
replaces=()
|
||||
backup=()
|
||||
options=()
|
||||
install=
|
||||
makedepends=('git' 'cmake' 'sed' 'python' 'python-setuptools' 'python2' 'python2-setuptools')
|
||||
source=(${pkgname}::git+https://github.com/wiringX/wiringX)
|
||||
noextract=()
|
||||
md5sums=('SKIP')
|
||||
|
||||
pkgver() {
|
||||
|
@ -34,10 +25,26 @@ build() {
|
|||
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .
|
||||
}
|
||||
|
||||
package() {
|
||||
package_wiringx-git() {
|
||||
cd "${pkgname}"
|
||||
make DESTDIR="${pkgdir}/" install
|
||||
}
|
||||
|
||||
package_python-wiringx-git() {
|
||||
depends=('python' 'wiringx-git')
|
||||
makedepends=('python-setuptools')
|
||||
pkgdesc="Python bindings for wiringX"
|
||||
cd "${pkgbase}/python"
|
||||
python setup.py install --root="$pkgdir/" --optimize=1
|
||||
}
|
||||
|
||||
package_python2-wiringx-git() {
|
||||
depends=('python2' 'wiringx-git')
|
||||
makedepends=('python2-setuptools')
|
||||
pkgdesc="Python2 bindings for wiringX"
|
||||
cd "${pkgbase}/python"
|
||||
python2 setup.py install --root="$pkgdir/" --optimize=1
|
||||
}
|
||||
|
||||
# vim:set ts=2 sw=2 et:
|
||||
|
||||
|
|
Loading…
Reference in a new issue