aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Matei Pintilie <luca@lucamatei.com>2024-02-07 19:38:55 +0000
committerLuca Matei Pintilie <luca@lucamatei.com>2024-02-07 19:38:55 +0000
commitbebfe5e75d5ec1faa7b8139ad3018b905f0aa52f (patch)
tree1aebf016c08d141bcd0846efdd70f74653843355
parent6266a3bdfbfd5ba78de6996dbaa00ca3ed108e5f (diff)
downloadvoid-packages-user/luca/gnirehtet.tar
void-packages-user/luca/gnirehtet.tar.gz
void-packages-user/luca/gnirehtet.tar.bz2
void-packages-user/luca/gnirehtet.tar.lz
void-packages-user/luca/gnirehtet.tar.xz
void-packages-user/luca/gnirehtet.tar.zst
void-packages-user/luca/gnirehtet.zip
New package: gnirehtet-2.5.1.user/luca/gnirehtet
-rw-r--r--srcpkgs/gnirehtet/template24
1 files changed, 24 insertions, 0 deletions
diff --git a/srcpkgs/gnirehtet/template b/srcpkgs/gnirehtet/template
new file mode 100644
index 00000000000..4b447184de8
--- /dev/null
+++ b/srcpkgs/gnirehtet/template
@@ -0,0 +1,24 @@
+# Template file for 'gnirehtet'
+pkgname=gnirehtet
+version=2.5.1
+revision=1
+build_wrksrc="gnirehtet-$version/relay-rust"
+build_style=cargo
+depends="android-tools"
+short_desc="Gnirehtet provides reverse tethering for Android"
+maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
+license="Apache-2.0"
+homepage="https://github.com/Genymobile/gnirehtet/"
+changelog="https://github.com/Genymobile/gnirehtet/releases/"
+distfiles="https://github.com/Genymobile/gnirehtet/archive/refs/tags/v${version}.tar.gz
+ https://github.com/Genymobile/gnirehtet/releases/download/v${version}/gnirehtet-java-v${version}.zip"
+checksum="0d41361b9ac8b3b7fa4f4a0aff933472a72886556bd3fc4659be299b546274e6
+ 816748078fa6a304600a294a13338a06ac778bcc0e57b62d88328c7968ad2d3a"
+
+post_patch() {
+ vsed -i src/main.rs -e 's|"gnirehtet.apk"|"/usr/lib/gnirehtet/gnirehtet.apk"|'
+}
+
+post_install() {
+ vinstall "$XBPS_BUILDDIR/$pkgname-$version/gnirehtet-java/gnirehtet.apk" 644 /usr/lib/gnirehtet/
+}