From 072f2850083e4a358e3eb8f1f2c7b8d585855f05 Mon Sep 17 00:00:00 2001 From: Janek Date: Wed, 6 Jul 2022 00:45:36 +0200 Subject: [PATCH] Create PKGBUILD --- PKGBUILD | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 PKGBUILD diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..cc274ec --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,25 @@ +# Maintainer: Janek S. +pkgname='switcheroo-git' +_pkgname='switcheroo' +pkgver='0.1.0' +pkgrel=1 +pkgdesc='A cross platform, rust implementation for the Tegra X1 bootROM exploit.' +url='https://github.com/budde25/switcheroo' +source=('git+https://github.com/budde25/switcheroo.git') +arch=('x86_64') +license=('GPL2') +makedepends=('git' 'cargo') +depends=('glibc') +conflicts=('switcheroo') +provides=('switcheroo') +sha256sums=(SKIP) + +build() { + cd $_pkgname + cargo build --release +} + +package() { + install -Dm755 "$srcdir/$_pkgname/target/release/switcheroo" "$pkgdir/usr/bin/switcheroo" + install -Dm644 "$srcdir/$_pkgname/extra/linux/io.ebudd.Switcheroo.desktop" -t "$pkgdir/usr/share/applications/" +} \ No newline at end of file