mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-03-19 00:21:40 +00:00
44 lines
830 B
Bash
44 lines
830 B
Bash
![]() |
# Maintainer: Paul Adams <paul@thoughtcriminal.co.uk>
|
||
|
|
||
|
buildarch=20
|
||
|
|
||
|
pkgname=wiringx-git
|
||
|
pkgver=r66.aad47d9
|
||
|
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=
|
||
|
source=(${pkgname}::git+https://github.com/wiringX/wiringX)
|
||
|
noextract=()
|
||
|
md5sums=('SKIP')
|
||
|
|
||
|
pkgver() {
|
||
|
cd "${pkgname}"
|
||
|
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
||
|
}
|
||
|
|
||
|
build() {
|
||
|
cd "${pkgname}"
|
||
|
msg2 "Removing insecure rpaths"
|
||
|
sed -i 's|,-rpath=/usr/local/lib/||g' CMakeLists.txt
|
||
|
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .
|
||
|
}
|
||
|
|
||
|
package() {
|
||
|
cd "${pkgname}"
|
||
|
make DESTDIR="${pkgdir}/" install
|
||
|
}
|
||
|
|
||
|
# vim:set ts=2 sw=2 et:
|
||
|
|