pmaports/device/testing/kobo-epdc-extractor/APKBUILD
Andreas Kemnade 18efe7b80e
kobo-epdc-extractor: extractor for hidden waveform partitions (MR 3099)
Extracts waveform into a file. Waveform seems to be specific to a
display batch.
2022-08-19 18:52:40 -04:00

43 lines
1.7 KiB
Text

# Maintainer: Andreas Kemnade <andreas@kemnade.info>
pkgname=kobo-epdc-extractor
pkgver=1.0
pkgdesc="Extractor for waveform on the kobo devices"
arch="armv7"
license="MIT"
url="https://postmarketos.org"
pkgrel=0
install="$pkgname.post-install"
source="
kobo-firmware-extractor-1.0.tar.gz::https://github.com/akemnade/kobo-firmware-extractor/archive/refs/tags/1.0.tar.gz
start-epd.sh
kobo-epdc-extractor.files
extract-waveform.initd
"
builddir="$srcdir"/kobo-firmware-extractor-1.0
build() {
make
}
package() {
make DESTDIR="$pkgdir" install
touch kobo-epdc-extractor
# we need it in case we want to do use a graphical display unlock
install -Dm644 kobo-epdc-extractor -t \
"$pkgdir"/usr/share/postmarketos-mkinitfs-triggers
mkdir -p "$pkgdir"/etc/postmarketos-mkinitfs/hooks/
install -Dm644 "$srcdir"/start-epd.sh \
"$pkgdir"/etc/postmarketos-mkinitfs/hooks/80-start-epd.sh
install -Dm644 "$srcdir"/kobo-epdc-extractor.files \
"$pkgdir"/etc/postmarketos-mkinitfs/files/01-kobo-epdc-extractor.files
install -Dm755 "$srcdir"/extract-waveform.initd "$pkgdir"/etc/init.d/extract-waveform
}
sha512sums="
2e44387b1275902f296ce77efd18b4759487891b28cb6b88477f44cd21ac6bc81b23c8d3016f81fe926bf87750b588d621fc1c36ca477dce42d3150f0b010953 kobo-firmware-extractor-1.0.tar.gz
d008a75fb6ae229e1257af517e741717611cb2bc9cd11ab736f9e066493986cf4a6199854deaf90a1e8c91cbc02e7f79b2cf67ccd92ba110290d4af0b5c5f8ef start-epd.sh
c71bf714bd05f9c4c2724fc855b90f5a7fa4c1014ff41f16a07a91e791ada67fede5b92536e22ef3634724a881492fa4151b1fb8060561e1bea2a2f960ba794e kobo-epdc-extractor.files
13712f9aa84ba06e27f38488f5062565dad06a4edd207daabc7450b57a62779216ea49c9987bb7b2a02e69d01ae354e8ca7c42ec2d19ee24f177cff5a36569a5 extract-waveform.initd
"