aboutsummaryrefslogtreecommitdiffstats
path: root/testing/gcompat/APKBUILD
blob: 746febc15fd6295e87af7884ea660e61eac722d6 (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
35
36
37
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=gcompat
pkgver=0.1.0
pkgrel=1
pkgdesc="The GNU C Library compatibility layer for musl"
url="https://code.foxkit.us/adelie/gcompat"
arch="all !aarch64"
license="UoI-NCSA"
depends="libc6-compat"
makedepends=""
install=""
replaces="libc6-compat"
source="https://distfiles.adelielinux.org/source/$pkgname-$pkgver.tar.xz"
builddir="$srcdir/gcompat-$pkgver"
options="!check"

case "$CARCH" in
armel) _ld="ld-linux.so.3" ;;
armhf | armv7) _ld="ld-linux-armhf.so.3" ;;
aarch64) _ld="ld-linux-aarch64.so.1" ;;
x86) _ld="ld-linux.so.2" ;;
x86_64) _ld="ld-linux-x86-64.so.2" ;;
mips* | s390*) _ld="ld.so.1" ;;
ppc64le) _ld="ld64.so.2" ;;
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="9e4589b4c518a197ad9c7de46c4165baaa65c4d138ecbbc90d89714d8f07db0da5821b89727563b4b9b690cc91a937f467b155509ff0a0a90cb741a3c0bbb686  gcompat-0.1.0.tar.xz"