summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSchala2017-02-05 14:43:19 -0800
committerSchala2017-02-05 14:43:19 -0800
commitc6b26800430f3cdde75854bcbda6e71fde6ec8b0 (patch)
treefae181024f7d30025ca54c79039828410a2ff599
downloadaur-c6b26800430f3cdde75854bcbda6e71fde6ec8b0.tar.gz
init
-rw-r--r--.SRCINFO22
-rw-r--r--.gitignore7
-rw-r--r--PKGBUILD34
3 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..d266bfcd971
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+# Generated by mksrcinfo v8
+# Sun Feb 5 22:41:24 UTC 2017
+pkgbase = cctools-git
+ pkgdesc = Apple cctools port for Linux
+ pkgver = 146
+ pkgrel = 1
+ url = https://github.com/tpoechtrager/cctools-port
+ arch = i686
+ arch = x86_64
+ license = APSL
+ makedepends = gcc-objc
+ makedepends = git
+ depends = llvm
+ provides = x86_64-apple-darwin-binutils
+ provides = cctools
+ conflicts = x86_64-apple-darwin-binutils
+ conflicts = cctools
+ source = git+https://github.com/tpoechtrager/cctools-port.git
+ md5sums = SKIP
+
+pkgname = cctools-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..1453d5894e8
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,7 @@
+cctools-port/
+pkg/
+src/
+*.gz
+*.log
+*.tar
+*.xz
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..86cc97ea97a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+pkgname=cctools-git
+pkgdesc="Apple cctools port for Linux"
+pkgver=146
+pkgrel=1
+arch=(i686 x86_64)
+url="https://github.com/tpoechtrager/cctools-port"
+license=("APSL")
+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')
+
+pkgver() {
+ cd cctools-port
+ echo $(git rev-list --count HEAD)
+}
+
+build() {
+ cd cctools-port/cctools
+ ./autogen.sh
+ ./configure \
+ --prefix=/usr \
+ --target=x86_64-apple-darwin \
+ --with-llvm-config=/usr/bin/llvm-config \
+ --libexecdir=/usr/lib
+ make
+}
+
+package() {
+ cd cctools-port/cctools
+ make DESTDIR="$pkgdir" install
+}