summaryrefslogtreecommitdiff
path: root/testing/fusee-nano/APKBUILD
blob: ee2fbe74409ba7d1b202fd55c13d06c344010e33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Contributor: TBK <alpine@jjtc.eu>
# Maintainer: TBK <alpine@jjtc.eu>
pkgname=fusee-nano
pkgver=0.4
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
	broken-makefile.patch
	"

build() {
	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

	# 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"

	amove lib/udev/rules.d
}

sha512sums="
18fe586a111a9bc8dd9c6ff57002ac731843c83151bfe2d63dd8890305862a7a93a9737256405dbc1c76f5a3fab94475fa786135c55d712e26600d04e0c26450  fusee-nano-0.4.tar.gz
c7f8c09625d357105015b620f012802513c6617e140d168f5e74a4c7c287578b78ca13f633cd6019a5f6494f85cece8c87260d8240035988ffc24afc53b7dcb4  broken-makefile.patch
"