PKGBUILDs/alarm/raspberrypi-utils/PKGBUILD

36 lines
1.1 KiB
Bash
Raw Normal View History

# Maintainer: graysky <therealgraysky AT protonmail DOT com>
pkgname=raspberrypi-utils
2024-04-02 18:07:52 +00:00
pkgver=20240402
2024-02-04 13:19:59 +00:00
pkgrel=1
2024-04-02 18:07:52 +00:00
_commit=6dc6f5f3d129a6c9423316ac1a53efb19a5c40d1
pkgdesc="Legacy scripts and simple applications for Raspberry Pi"
arch=('aarch64' 'armv7h')
url="https://github.com/raspberrypi/utils"
license=('custom')
makedepends=('cmake' )
depends=('dtc')
replaces=('raspberrypi-firmware')
conflicts=('raspberrypi-firmware')
options=(!strip)
source=("utils-$pkgver-$pkgrel-${_commit:0:10}.tar.gz::https://github.com/raspberrypi/utils/archive/$_commit.tar.gz"
10-raspberrypi-utils.rules
)
2024-04-02 18:07:52 +00:00
md5sums=('471b80ac13946b53f4b39727de21c571'
2024-02-04 13:19:59 +00:00
'a0423d9850cc56a15967e103c351c335')
build() {
cd "utils-$_commit"
cmake -S . -B . -DCMAKE_INSTALL_PREFIX=/usr
make
}
package() {
cd "utils-${_commit}"
make install DESTDIR="$pkgdir"
install -Dm0644 LICENCE -t "$pkgdir/usr/share/licenses/$pkgname"
# setup permissions on video group for /usr/bin/vcgencmd
install -Dm0644 ../10-raspberrypi-utils.rules "$pkgdir/usr/lib/udev/rules.d/10-raspberrypi-utils.rules"
}