mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
35 lines
1.1 KiB
Bash
35 lines
1.1 KiB
Bash
# Maintainer: graysky <therealgraysky AT protonmail DOT com>
|
|
|
|
pkgname=raspberrypi-utils
|
|
pkgver=20240522
|
|
pkgrel=1
|
|
_commit=8a78b53a43982df6ae10e0334b464a8b14cb974f
|
|
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
|
|
)
|
|
md5sums=('bc22c80782b51dce91fc200e06ea7472'
|
|
'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"
|
|
}
|