From c08ff9082caec00256a169f3f0285f672c370c6b Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Wed, 14 Jun 2017 19:27:02 +0000 Subject: testing/gcompat: new aport --- testing/gcompat/APKBUILD | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 testing/gcompat/APKBUILD (limited to 'testing/gcompat') diff --git a/testing/gcompat/APKBUILD b/testing/gcompat/APKBUILD new file mode 100644 index 0000000000..a93c84a4ba --- /dev/null +++ b/testing/gcompat/APKBUILD @@ -0,0 +1,35 @@ +# Maintainer: William Pitcock +pkgname=gcompat +pkgver=0.0.1 +pkgrel=0 +pkgdesc="enhanced glibc compatibility layer" +url="http://github.com/kaniini/gcompat" +arch="all" +license="ISC" +depends="" +makedepends="" +install="" +replaces="libc6-compat" +source="http://github.com/kaniini/gcompat/archive/gcompat-$pkgver/gcompat-$pkgver.tar.gz" +builddir="$srcdir/gcompat-gcompat-$pkgver" +options="!check" + +case "$CARCH" in +armel) _ld="ld-linux.so.3" ;; +armhf | armv7) _ld="ld-linux-armhf.so.3" ;; +x86) _ld="ld-linux.so.2" ;; +x86_64) _ld="ld-linux-x86-64.so.2" ;; +mips* | s390*) _ld="ld.so.1" ;; +esac + +build() { + cd "$builddir" + make LINKER_PATH="/lib/ld-musl-${CARCH}.so.1" LOADER_NAME="$_ld" +} + +package() { + cd "$builddir" + make LINKER_PATH="/lib/ld-musl-${CARCH}.so.1" LOADER_NAME="$_ld" DESTDIR="$pkgdir" install +} + +sha512sums="ab12ec00159b4d269d415977b316b28308e06e0b26e3604efe391cdc5f9e0c2a6d015d71ff6a497d4c92f9cb514774c3d3de658eb74a1ea892c7f973223c16a9 gcompat-0.0.1.tar.gz" -- cgit v1.2.3