PKGBUILDs/alarm/raspberrypi-utils/PKGBUILD

34 lines
1 KiB
Bash
Raw Normal View History

# Maintainer: graysky <therealgraysky AT protonmail DOT com>
pkgname=raspberrypi-utils
2023-12-21 17:41:41 +00:00
pkgver=20231221
pkgrel=1
2023-12-21 17:41:41 +00:00
_commit=2cc103f4531a005cadaa8a9d09d6c85523c166bb
pkgdesc="Legacy scripts and simple applications for Raspberry Pi"
arch=('aarch64' 'armv7h')
url="https://github.com/raspberrypi/utils"
license=('custom')
makedepends=('cmake' '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)
2023-12-21 17:41:41 +00:00
md5sums=('0ea9ae57dabb7c9849cd20edbebbd136'
'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"
}