pmaports/main/msm-fb-refresher/APKBUILD
2024-06-04 20:46:50 +02:00

42 lines
1.6 KiB
Text

# Maintainer: Clayton Craft <clayton@craftyguy.net>
pkgname=msm-fb-refresher
pkgver=0.2
pkgrel=5
pkgdesc="Display refresher for Qualcomm devices"
arch="all"
url="https://github.com/AsteroidOS/msm-fb-refresher"
license="GPL-3.0-or-later"
makedepends="linux-headers"
install="$pkgname.post-install"
source="
$pkgname-$pkgver.tar.gz::https://github.com/AsteroidOS/msm-fb-refresher/archive/v$pkgver.tar.gz
msm-fb-refresher.init
00-msm-fb-refresher.sh
00-msm-fb-refresher.files
"
build() {
gcc refresher.c -o refresher.o -c
gcc refresher.o -o msm-fb-refresher
}
package() {
install -Dm755 msm-fb-refresher \
"$pkgdir"/usr/sbin/msm-fb-refresher
install -Dm755 "$srcdir"/msm-fb-refresher.init \
"$pkgdir"/etc/init.d/msm-fb-refresher
# Initramfs hook
local initfsdir="$pkgdir"/usr/share/mkinitfs/
mkdir -p "$initfsdir"/hooks "$initfsdir"/files
install -Dm755 "$srcdir"/00-msm-fb-refresher.sh \
"$initfsdir"/hooks/00-msm-fb-refresher.sh
install -Dm755 "$srcdir"/00-msm-fb-refresher.files \
"$initfsdir/files/00-msm-fb-refresher.files"
}
sha512sums="
5e2920cf86f2e373e2411a89cf3ac6745af042ff7d91ae581f26b72772bc9ab621ea4154bc33ef57dce0c04ba3f88ee3b9f98c2a17b2579df368b0929cf0bfa7 msm-fb-refresher-0.2.tar.gz
e4dc12848d5615ff758ad3ba4165bef5501c92350f46072d30d9924821bf63ad89fe69e78f248562c8377d537bf8c3cefd275130a97040741bd80ff32a1838a3 msm-fb-refresher.init
d9620a58052f4a0b21bfb5ced4941d959e5620f2293b5f6715a95622767d7801d22d7882f8eef4ccc5f43cb3960b46a8baa6b7a71d22271e955b92d8d713f6ae 00-msm-fb-refresher.sh
906c0d672682a9f0e3e8e07e207a557b8a1659e2e6021cb95c4b9886aed3b9ea477638c00ce9e4193b52dcfab7da317d9840cc576f29c7c7158cc11fd368be84 00-msm-fb-refresher.files
"