user/rm-extractor: new aport

This commit is contained in:
Antoine Martin 2023-05-16 15:17:35 -04:00 committed by Antoine Martin
parent db7b6a5408
commit 5be54371ed

View file

@ -0,0 +1,27 @@
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=rm-extractor
_gittag=9d37e9437affea379dadb59e646a819b3b9147dd
pkgver=0.0.1
pkgrel=0
pkgdesc="Image extractor for reMarkable firmware files"
arch="noarch"
url="https://github.com/ddvk/remarkable-update"
license="MIT"
makedepends="py3-six py3-protobuf"
options="!check" # No testsuite
builddir="$srcdir/remarkable-update-$_gittag"
source="$pkgname-$pkgver.tar.gz::https://github.com/ddvk/remarkable-update/archive/$_gittag.tar.gz"
package() {
install -vDm755 "$builddir"/extractor/extractor.py "$pkgdir"/usr/lib/rm-extractor/extractor.py
install -vDm644 "$builddir"/extractor/update_metadata.proto "$pkgdir"/usr/lib/rm-extractor/update_metadata.proto
install -vDm755 "$builddir"/extractor/update_metadata_pb2.py "$pkgdir"/usr/lib/rm-extractor/update_metadata_pb2.py
install -vdm755 "$pkgdir"/usr/bin
ln -s /usr/lib/rm-extractor/extractor.py "$pkgdir"/usr/bin/rm-extractor
}
sha512sums="
866c483950ee2cf7085e7d43d8752458d9aeb58b4361c05f50ac3118e87b295ff62b3d4288ad846eda5f93a4afe38891f6a9166f839c66f5ff0ab07afab6ae16 rm-extractor-0.0.1.tar.gz
"