summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaden Kline2018-04-05 20:22:35 -0400
committerCaden Kline2018-04-05 20:22:35 -0400
commita5becdd84404233574cb422d296adcb4ca29f149 (patch)
tree4e9f2ec142fec44c5bda984777c984d7f2b94c56
parent406d8a705294a2b0ad7789283bd7e114ea9ccf09 (diff)
downloadaur-a5becdd84404233574cb422d296adcb4ca29f149.tar.gz
Auto sets LIBTRANSISTOR_HOME
also fixes x86_64 being set as the arch
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD4
-rw-r--r--libtransistor-git.install8
3 files changed, 9 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 3c2e07405385..6b227821f7b2 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -3,7 +3,7 @@ pkgbase = libtransistor-git
pkgver = 1.1.0.r256.g383d582
pkgrel = 2
url = https://github.com/ReSwitched/libtransistor
- arch = x86_64
+ arch = any
groups = base-devel
license = ISC
makedepends = git
@@ -17,7 +17,7 @@ pkgbase = libtransistor-git
conflicts = libtransistor-bin
options = !strip
options = !buildflags
- source = git+https://github.com/ReSwitched/libtransistor.git
+ source = git+https://github.com/ReSwitched/libtransistor.git#branch=development
md5sums = SKIP
pkgname = libtransistor-git
diff --git a/PKGBUILD b/PKGBUILD
index 821710bcdc50..0781a56f943e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@ pkgname=libtransistor-git
pkgver=1.1.0.r256.g383d582
pkgrel=2
pkgdesc="Nintendo Switch homebrew toolchain"
-arch=('x86_64')
+arch=('any')
url="https://github.com/ReSwitched/libtransistor"
license=('ISC')
groups=('base-devel')
@@ -18,7 +18,7 @@ makedepends=('git'
provides=("libtransistor")
conflicts=("libtransistor-bin")
options=(!'strip' !'buildflags')
-source=("git+https://github.com/ReSwitched/libtransistor.git")
+source=("git+https://github.com/ReSwitched/libtransistor.git#branch=development")
md5sums=("SKIP")
prepare()
diff --git a/libtransistor-git.install b/libtransistor-git.install
index fe73121695b0..0012a1e72bbd 100644
--- a/libtransistor-git.install
+++ b/libtransistor-git.install
@@ -1,4 +1,6 @@
-post_install()
-{
- echo "set LIBTRANSISTOR_HOME=/opt/libtransistor"
+post_install() {
+ echo "export LIBTRANSISTOR_HOME=/opt/libtransistor" > /etc/profile.d/libtransistor.sh
+}
+post_remove(){
+ rm /etc/profile.d/libtransistor.sh
}