blob: cdc5d01e1ee6af4e37bac24501a2dd0acbbd441b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
pkgname=wiringop-orangepi-5-plus-git
pkgver=2.52
pkgrel=2
pkgdesc='wiringPi for Orange Pi 5 Plus'
arch=('x86_64' 'aarch64')
url='https://github.com/orangepi-xunlong/wiringOP'
license=('LGPL-3.0')
makedepends=('git' 'make' 'gcc' 'wiringop-orangepi-5-plus-base-git')
depends=('wiringop-orangepi-5-plus-base-git')
_commit="ce520ea17701445eb2e8e3cc1b6e157d29b63713"
source=(
"git+https://github.com/orangepi-xunlong/wiringOP#commit=${_commit}"
)
md5sums=(SKIP)
build() {
cd "${srcdir}/wiringOP"
# gpio
cd gpio
make
}
package() {
cd "${srcdir}/wiringOP"
# gpio
cd gpio
mkdir -p "${pkgdir}/usr/bin"
cp gpio "${pkgdir}/usr/bin"
chown root:root "${pkgdir}/usr/bin/gpio"
chmod 4755 "${pkgdir}/usr/bin/gpio"
# /usr/local/share/man exists in filesystem (owned by filesystem)
mkdir -p "${pkgdir}/usr/share/man/man1"
cp gpio.1 "${pkgdir}/usr/share/man/man1/"
#install -m 0755 -d "${pkgdir}/usr/local/share/man/man1/"
#install -m 0644 gpio.1 "${pkgdir}/usr/local/share/man/man1/"
}
|