2023-10-21 08:22:12 +00:00
|
|
|
# Maintainer: graysky <therealgraysky AT protonmail DOT com>
|
|
|
|
|
|
|
|
pkgname=raspberrypi-utils
|
2024-10-17 22:16:27 +00:00
|
|
|
pkgver=20241017
|
2024-02-04 13:19:59 +00:00
|
|
|
pkgrel=1
|
2024-10-17 22:16:27 +00:00
|
|
|
_commit=30c8c789291e5aeebae9f3b0f5336a1e492841f4
|
2023-10-21 08:22:12 +00:00
|
|
|
pkgdesc="Legacy scripts and simple applications for Raspberry Pi"
|
|
|
|
arch=('aarch64' 'armv7h')
|
|
|
|
url="https://github.com/raspberrypi/utils"
|
|
|
|
license=('custom')
|
2023-12-29 12:10:31 +00:00
|
|
|
makedepends=('cmake' )
|
|
|
|
depends=('dtc')
|
2023-10-21 08:22:12 +00:00
|
|
|
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"
|
2024-02-03 16:44:18 +00:00
|
|
|
10-raspberrypi-utils.rules
|
|
|
|
)
|
2024-10-17 22:16:27 +00:00
|
|
|
md5sums=('a5d354d84623f187a725b5ec67643b7f'
|
2024-02-04 13:19:59 +00:00
|
|
|
'a0423d9850cc56a15967e103c351c335')
|
2023-10-21 08:22:12 +00:00
|
|
|
|
|
|
|
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"
|
|
|
|
}
|