diff options
author | emersion | 2017-02-01 11:46:47 +0100 |
---|---|---|
committer | emersion | 2017-02-01 11:46:47 +0100 |
commit | 8aa5e6e9af10eddd0d4fc47b61d3e829d0cffbe2 (patch) | |
tree | 6f1ffcf478ff934ba76bded10dff2764ba8d114e | |
download | aur-8aa5e6e9af10eddd0d4fc47b61d3e829d0cffbe2.tar.gz |
First commit
-rw-r--r-- | .SRCINFO | 25 | ||||
-rw-r--r-- | PKGBUILD | 37 |
2 files changed, 62 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..045b9c105d96 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,25 @@ +pkgbase = osxcross-git + pkgdesc = OS X cross toolchain for Linux, FreeBSD and NetBSD + pkgver = 0.14 + pkgrel = 1 + url = https://github.com/tpoechtrager/osxcross + arch = x86_64 + license = MIT + makedepends = clang>=3.2 + makedepends = patch + makedepends = libxml2 + makedepends = bash + optdepends = llvm: for Link Time Optimization support and ld64 -bitcode_bundle support + optdepends = uuid: for ld64 -random_uuid support + optdepends = xar: for ld64 -bitcode_bundle support + provides = osxcross + conflicts = osxcross + noextract = MacOSX10.11.sdk.tar.xz + options = !strip + source = git+https://github.com/tpoechtrager/osxcross.git + source = https://s3.dockerproject.org/darwin/v2/MacOSX10.11.sdk.tar.xz + md5sums = SKIP + md5sums = b0d81b95746c7e698c39c7df1e15ca7d + +pkgname = osxcross-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c56750d67aed --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: emersion <contact@emersion.fr> +pkgname=osxcross-git +_pkgname=${pkgname%-git} +pkgver=0.14 +pkgrel=1 +pkgdesc="OS X cross toolchain for Linux, FreeBSD and NetBSD" +arch=('x86_64') +url="https://github.com/tpoechtrager/osxcross" +license=('MIT') +depends=() +makedepends=('clang>=3.2' 'patch' 'libxml2' 'bash') +optdepends=( + 'llvm: for Link Time Optimization support and ld64 -bitcode_bundle support' + 'uuid: for ld64 -random_uuid support' + 'xar: for ld64 -bitcode_bundle support' +) +provides=("$_pkgname") +conflicts=("$_pkgname") +source=('git+https://github.com/tpoechtrager/osxcross.git' 'https://s3.dockerproject.org/darwin/v2/MacOSX10.11.sdk.tar.xz') +md5sums=('SKIP' 'b0d81b95746c7e698c39c7df1e15ca7d') +noextract=('MacOSX10.11.sdk.tar.xz') +options=('!strip') + +build() { + cd "$srcdir/$_pkgname" + + mv ../MacOSX10.11.sdk.tar.xz tarballs/ + sed -i -e 's|-march=native||g' build_clang.sh wrapper/build.sh + UNATTENDED=yes OSX_VERSION_MIN=10.6 ./build.sh +} + +package() { + cd "$srcdir/$_pkgname" + + mkdir -p $pkgdir/usr/local + mv target $pkgdir/usr/local/osx-ndk-x86 +} |