mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
alarm/wiringx-git: Install binaries in usr/bin instead of usr/sbin
This commit is contained in:
parent
44c7585a1f
commit
00d78a4cf4
1 changed files with 7 additions and 3 deletions
|
@ -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 .
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue