summaryrefslogtreecommitdiff
path: root/testing/fusee-nano/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/fusee-nano/APKBUILD')
-rw-r--r--testing/fusee-nano/APKBUILD38
1 files changed, 23 insertions, 15 deletions
diff --git a/testing/fusee-nano/APKBUILD b/testing/fusee-nano/APKBUILD
index 242c8a4366d..ee2fbe74409 100644
--- a/testing/fusee-nano/APKBUILD
+++ b/testing/fusee-nano/APKBUILD
@@ -2,35 +2,43 @@
# Maintainer: TBK <alpine@jjtc.eu>
pkgname=fusee-nano
pkgver=0.4
-pkgrel=1
-pkgdesc="A minimalist re-implementation of the Fusée Gelée exploit, designed to run on embedded Linux devices."
+pkgrel=2
+pkgdesc="Minimalist re-implementation of the Fusée Gelée exploit, designed to run on embedded Linux devices."
url="https://github.com/DavidBuchanan314/fusee-nano"
arch="all"
license="MIT"
options="!check" # No test suite
makedepends="linux-headers"
subpackages="$pkgname-udev::noarch"
-source="$pkgname-$pkgver.tar.gz::https://github.com/DavidBuchanan314/fusee-nano/archive/$pkgver.tar.gz"
+source="$pkgname-$pkgver.tar.gz::https://github.com/DavidBuchanan314/fusee-nano/archive/$pkgver.tar.gz
+ broken-makefile.patch
+ "
build() {
- make
+ make CC="${CC:-cc}"
}
package() {
- mkdir -p "$pkgdir"/usr/share/$pkgname/
- cp -r files/* "$pkgdir"/usr/share/$pkgname/
- install -Dm 755 fusee-nano "$pkgdir"/usr/bin/fusee-nano
+ mkdir -p "$pkgdir"/usr/share/$pkgname/
+ cp -r files/* "$pkgdir"/usr/share/$pkgname/
+ install -Dm 755 fusee-nano "$pkgdir"/usr/bin/fusee-nano
- # Remove openwrt file
- rm "$pkgdir"/usr/share/$pkgname/20-tegra_rcm
+ # Remove openwrt file
+ rm "$pkgdir"/usr/share/$pkgname/20-tegra_rcm
+
+ mkdir -p "$pkgdir"/lib/udev/rules.d/
+ mv "$pkgdir"/usr/share/fusee-nano/*.rules \
+ "$pkgdir"/lib/udev/rules.d/
}
udev() {
- pkgdesc="udev rule for $pkgname"
- install_if="$pkgname=$pkgver-r$pkgrel eudev"
- mkdir -p "$subpkgdir"/lib/udev/rules.d/
- mv "$pkgdir"/usr/share/$pkgname/*.rules \
- "$subpkgdir"/lib/udev/rules.d/
+ pkgdesc="udev rule for $pkgname"
+ install_if="$pkgname=$pkgver-r$pkgrel eudev"
+
+ amove lib/udev/rules.d
}
-sha512sums="18fe586a111a9bc8dd9c6ff57002ac731843c83151bfe2d63dd8890305862a7a93a9737256405dbc1c76f5a3fab94475fa786135c55d712e26600d04e0c26450 fusee-nano-0.4.tar.gz"
+sha512sums="
+18fe586a111a9bc8dd9c6ff57002ac731843c83151bfe2d63dd8890305862a7a93a9737256405dbc1c76f5a3fab94475fa786135c55d712e26600d04e0c26450 fusee-nano-0.4.tar.gz
+c7f8c09625d357105015b620f012802513c6617e140d168f5e74a4c7c287578b78ca13f633cd6019a5f6494f85cece8c87260d8240035988ffc24afc53b7dcb4 broken-makefile.patch
+"