Browse Source

Update 'PKGBUILD'

Nathaniel van Diepen 2 years ago
parent
commit
6605466b33
1 changed files with 4 additions and 14 deletions
  1. 4 14
      PKGBUILD

+ 4 - 14
PKGBUILD

@@ -4,8 +4,9 @@ pkgrel=1
 url='https://github.com/CE-Programming/toolchain'
 pkgdesc="Toolchain and libraries for C programming on the TI-84 Plus CE / TI-83 Premium CE calculators"
 arch=('any')
-source=("git+https://github.com/CE-Programming/toolchain.git#branch=llvm")
-md5sums=('SKIP')
+source=("git+https://github.com/CE-Programming/toolchain.git#branch=llvm"
+	"https://jacobly.com/llvm/ez80-clang-LinuxRelease.zip")
+md5sums=('SKIP' 'SKIP')
 depends=('wine')
 makedepends=('git' 'cmake')
 license=('custom')
@@ -19,19 +20,8 @@ prepare(){
 	cd "$srcdir/toolchain";
 	git submodule init;
 	git submodule update;
-	cd "$srcdir"
-	if [ -d llvm-project ];then
-		cd llvm-project;
-		git pull --depth 1;
-	else
-		git clone -b z80 --depth 1 https://github.com/jacobly0/llvm-project.git
-	fi;
-	mkdir -p "$srcdir/llvm-project-build";
 }
 build(){
-	cd "$srcdir/llvm-project-build";
-	cmake "$srcdir/llvm-project/llvm" -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS=clang -DLLVM_TARGETS_TO_BUILD= -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=Z80
-	cmake --build . --target clang
 	PATH="$PATH:$srcdir/llvm-project-build/bin"
 	cd "$srcdir/toolchain";
 	make;
@@ -41,5 +31,5 @@ package() {
 	install -Dm644 license "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 	mkdir -p "$pkgdir/opt/bin";
 	make install PREFIX="$pkgdir/opt";
-	cp "$srcdir/llvm-project-build/bin/clang" "$pkgdir/opt/bin/ez80-clang";
+	unzip "$srcdir/ez80-clang-LinuxRelease.zip" -d "$pkgdir/opt/bin";
 }