summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD18
1 files changed, 14 insertions, 4 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 86cc97ea97a..bb215ada106 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
pkgname=cctools-git
pkgdesc="Apple cctools port for Linux"
pkgver=146
-pkgrel=1
+pkgrel=2
arch=(i686 x86_64)
url="https://github.com/tpoechtrager/cctools-port"
license=("APSL")
@@ -9,17 +9,26 @@ depends=(llvm)
makedepends=(gcc-objc git)
provides=(x86_64-apple-darwin-binutils cctools)
conflicts=(x86_64-apple-darwin-binutils cctools)
-source=("git+https://github.com/tpoechtrager/cctools-port.git")
-md5sums=('SKIP')
+source=("git+https://github.com/tpoechtrager/cctools-port.git"
+"cctools-ld64-1.patch" "cctools-ld64-2.patch")
+md5sums=('SKIP'
+ '2dc516ac75bce198fc7dcb2a0fd0d4ee'
+ '52b7a03acaf34cbeed19b5b16e01deed')
pkgver() {
cd cctools-port
echo $(git rev-list --count HEAD)
}
+prepare() {
+ cd cctools-port/cctools
+ patch -p0 -i ${srcdir}/cctools-ld64-1.patch
+ patch -p0 -i ${srcdir}/cctools-ld64-2.patch
+}
+
build() {
cd cctools-port/cctools
- ./autogen.sh
+ NOCONFIGURE=1 ./autogen.sh
./configure \
--prefix=/usr \
--target=x86_64-apple-darwin \
@@ -31,4 +40,5 @@ build() {
package() {
cd cctools-port/cctools
make DESTDIR="$pkgdir" install
+ install -Dm644 APPLE_LICENSE "$pkgdir/usr/share/licenses/cctools/APPLE_LICENSE"
}