blob: 09d7b70d9d397d759ceb21d7e2ba2f81d3d04957 (
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
45
46
47
48
49
50
51
52
|
# Maintainer: Mikaela RJ "Qyriad" Szekely <qyriad@gmail.com>
# Special thanks to Pokemod97 for libtransistor-git <3
pkgname=libtransistor-git
pkgver=1.1.0.r328.gd43901e
pkgrel=1
pkgdesc="Nintendo Switch homebrew toolchain"
arch=('any')
url="https://github.com/ReSwitched/libtransistor"
license=('ISC')
groups=('base-devel')
depends=('clang'
'lld'
'squashfs-tools'
'python-pyelftools'
'python-lz4')
makedepends=('git'
'cmake')
provides=("libtransistor")
conflicts=("libtransistor-bin")
options=(!'strip' !'buildflags')
source=("git+https://github.com/ReSwitched/libtransistor.git#branch=development"
"git+https://github.com/reswitched/libtransistor-base.git#branch=master")
md5sums=("SKIP" "SKIP")
prepare()
{
cd "$srcdir/libtransistor"
git submodule update --init --recursive
cd "$srcdir/libtransistor-base"
git submodule update --init --recursive
}
pkgver()
{
cd "$srcdir/libtransistor"
git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build()
{
cd "$srcdir/libtransistor-base"
make
mv dist "$srcdir/libtransistor/"
cd "$srcdir/libtransistor"
}
package()
{
cd "$srcdir/libtransistor/dist"
mkdir -p "$pkgdir/opt/libtransistor"
cp -r * "$pkgdir/opt/libtransistor"
}
|