alarm/wiringx-git: Install binaries in usr/bin instead of usr/sbin

This commit is contained in:
Timothy Redaelli 2016-02-04 12:43:21 +01:00
parent 44c7585a1f
commit 00d78a4cf4

View file

@ -5,7 +5,7 @@ buildarch=20
pkgbase='wiringx-git'
pkgname=('wiringx-git' 'python-wiringx-git' 'python2-wiringx-git')
pkgver=r142.be3abd5
pkgrel=1
pkgrel=2
pkgdesc="wiringX is a modular GPIO interface, derived from wiringPi"
arch=('arm')
url="http://wiringx.org"
@ -19,10 +19,14 @@ pkgver() {
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
sed -i 's:DESTINATION sbin/:DESTINATION bin/:' "${pkgname}"/CMakeLists.txt
msg2 "Removing insecure rpaths"
sed -i 's|,-rpath=/usr/local/lib/||g' "${pkgname}"/CMakeLists.txt
}
build() {
cd "${pkgname}"
msg2 "Removing insecure rpaths"
sed -i 's|,-rpath=/usr/local/lib/||g' CMakeLists.txt
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .
}