diff options
author | rouhannb | 2019-01-26 16:36:28 -0500 |
---|---|---|
committer | rouhannb | 2019-01-26 16:36:28 -0500 |
commit | 55f9addbc2aec51d331e947c2edcd35f0f648be1 (patch) | |
tree | 5db8f7df96f40db457c45e1cd94681490365fe32 /PKGBUILD | |
download | aur-55f9addbc2aec51d331e947c2edcd35f0f648be1.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..e77e00d0ed53 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: rouhannb <rouhannb@gmail.com> +pkgname=fusee-launcher-git +pkgver=r30.265e8f3 +pkgrel=1 +pkgdesc='work-in-progress launcher for one of the Tegra X1 bootROM exploits' +arch=('any') +url="https://github.com/Cease-and-DeSwitch/${pkgname%-git}" +license=('GPL2') +depends=('python-pyusb') +makedepends=('git' 'arm-none-eabi-gcc') +provides=("${pkgname%-git}") +conflicts=("${pkgname%-git}") +source=('git+https://github.com/Cease-and-DeSwitch/fusee-launcher.git' 'runner.sh') +md5sums=('SKIP' '1d81a0959d6f81c94caca58d3496ba7b') + +pkgver() { + cd "$srcdir/${pkgname%-git}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +# This isn't truly necessary, as fusee-launcher comes with a precompiled +# intermezzo.bin. Running makepkg with --nobuild should work fine. +build() { + cd "$srcdir/${pkgname%-git}" + make +} + +package() { + cd "$srcdir/${pkgname%-git}" + install -Dm644 -t "$pkgdir/opt/${pkgname%-git}" "${pkgname%-git}.py" + install -m644 -t "$pkgdir/opt/${pkgname%-git}" 'intermezzo.bin' + install -D "$srcdir/runner.sh" "$pkgdir/usr/bin/${pkgname%-git}" +} |