diff options
author | Timo Teräs <timo.teras@iki.fi> | 2013-09-06 11:00:03 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2013-09-06 11:06:30 +0000 |
commit | 6412f70fcbbfbddf82d0c91134149573f65fc28d (patch) | |
tree | ee3d5717d6749384bbf5bf4bfa7947a0a109b2b4 /main/libcap | |
parent | dae6d410f1da2133a0b58365f4ed8d4825312fef (diff) | |
download | aports-6412f70fcbbfbddf82d0c91134149573f65fc28d.tar.bz2 aports-6412f70fcbbfbddf82d0c91134149573f65fc28d.tar.xz |
main/libcap: fix crosscompiling
Diffstat (limited to 'main/libcap')
-rw-r--r-- | main/libcap/APKBUILD | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/main/libcap/APKBUILD b/main/libcap/APKBUILD index 77e906033f..864bb30990 100644 --- a/main/libcap/APKBUILD +++ b/main/libcap/APKBUILD @@ -7,14 +7,17 @@ arch="all" license="GPL" url="http://www.friedhoff.org/posixfilecaps.html" depends= -makedepends="perl attr-dev" +makedepends_build="perl" +makedepends_host="attr-dev" +makedepends="$makedepends_build $makedepends_host" source="http://dev.alpinelinux.org/archive/libcap/$pkgname-$pkgver.tar.gz" subpackages="$pkgname-doc $pkgname-dev" + _builddir="$srcdir"/$pkgname-$pkgver build () { cd "$_builddir" - make lib=/lib prefix=/usr DESTDIR="$pkgdir" + make BUILD_CC=gcc CC=$CC lib=/lib prefix=/usr DESTDIR="$pkgdir" } package() { |