summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 86cc97ea97a575f99458173d845d312df2b44160 (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
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
}