summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaden Kline2018-04-05 20:28:39 -0400
committerCaden Kline2018-04-05 20:28:39 -0400
commit020f8aed623ef7db2991920a4eef5ebb5a5a5b6a (patch)
tree1ee0382ffcda9fab799eed5145de2086542945b3
parent82e84338fa40d9a0eb59e52b03172df20cf52411 (diff)
downloadaur-020f8aed623ef7db2991920a4eef5ebb5a5a5b6a.tar.gz
auto set LIBTRANSISTOR_HOME
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD2
-rw-r--r--libtransistor-bin.install7
3 files changed, 7 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 73e7b37322dd..95ce70f7163d 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -4,7 +4,7 @@ pkgbase = libtransistor-bin
pkgrel = 1
url = https://github.com/reswitched/libtransistor
install = libtransistor-bin.install
- arch = x86_64
+ arch = any
groups = base-devel
license = ISC
makedepends = git
diff --git a/PKGBUILD b/PKGBUILD
index bb1999fae560..6f4bd25fed2a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,7 +10,7 @@ pkgver=v1.2.2
pkgrel=1
epoch=
pkgdesc="Nintendo Switch homebrew toolchain"
-arch=('x86_64')
+arch=('any')
url="https://github.com/reswitched/libtransistor"
license=('ISC')
groups=('base-devel')
diff --git a/libtransistor-bin.install b/libtransistor-bin.install
index 20e7729c9871..0012a1e72bbd 100644
--- a/libtransistor-bin.install
+++ b/libtransistor-bin.install
@@ -1,3 +1,6 @@
post_install() {
- echo "set LIBTRANSITOR_HOME=/opt/libtransistor/"
-} \ No newline at end of file
+ echo "export LIBTRANSISTOR_HOME=/opt/libtransistor" > /etc/profile.d/libtransistor.sh
+}
+post_remove(){
+ rm /etc/profile.d/libtransistor.sh
+}