Skip to content

Commit

Permalink
mod for arm
Browse files Browse the repository at this point in the history
  • Loading branch information
yangxuan8282 committed Jun 7, 2017
1 parent d019424 commit d65d1ff
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions APKBUILD 100644 → 100755
@@ -1,21 +1,22 @@
# Maintainer: Sasha Gerrand <alpine-pkgs@sgerrand.com>
# Maintainer: Yangxuan <yangxuan8282@gmail.com>

pkgname="glibc"
pkgver="2.25"
_pkgrel="0"
pkgrel="1"
pkgdesc="GNU C Library compatibility layer"
arch="x86_64"
arch="armhf"
url="https://github.com/sgerrand/alpine-pkg-glibc"
license="GPL"
source="https://github.com/sgerrand/docker-glibc-builder/releases/download/$pkgver-$_pkgrel/glibc-bin-$pkgver-$_pkgrel-x86_64.tar.gz
source="$URL/glibc-bin-2.25.tar.gz
nsswitch.conf
ld.so.conf"
subpackages="$pkgname-bin $pkgname-dev $pkgname-i18n"
triggers="$pkgname-bin.trigger=/lib:/usr/lib:/usr/glibc-compat/lib"

package() {
mkdir -p "$pkgdir/lib" "$pkgdir/lib64" "$pkgdir/usr/glibc-compat/lib/locale" "$pkgdir"/etc
mkdir -p "$pkgdir/lib" "$pkgdir/usr/glibc-compat/lib/locale" "$pkgdir"/etc
cp -a "$srcdir"/usr "$pkgdir"
cp "$srcdir"/nsswitch.conf "$pkgdir"/etc/nsswitch.conf
cp "$srcdir"/ld.so.conf "$pkgdir"/usr/glibc-compat/etc/ld.so.conf
Expand All @@ -27,8 +28,7 @@ package() {
rm -rf "$pkgdir"/usr/glibc-compat/lib/audit
rm -rf "$pkgdir"/usr/glibc-compat/share
rm -rf "$pkgdir"/usr/glibc-compat/var
ln -s /usr/glibc-compat/lib/ld-linux-x86-64.so.2 ${pkgdir}/lib/ld-linux-x86-64.so.2
ln -s /usr/glibc-compat/lib/ld-linux-x86-64.so.2 ${pkgdir}/lib64/ld-linux-x86-64.so.2
ls -s /usr/glibc-compat/lib/ld-linux-armhf.so.3 ${pkgdir}/lib/ld-linux-armhf.so.3
ln -s /usr/glibc-compat/etc/ld.so.cache ${pkgdir}/etc/ld.so.cache
}

Expand All @@ -46,12 +46,12 @@ i18n() {
cp -a "$srcdir"/usr/glibc-compat/share "$subpkgdir"/usr/glibc-compat
}

md5sums="f3f189a024519a29a35313c6957064a9 glibc-bin-2.25-0-x86_64.tar.gz
md5sums="a1fcc56a453f7a331ae8f698beb3979e glibc-bin-2.25.tar.gz
5be984273de4203318c9c3fb0d4e9d2b nsswitch.conf
0484678534996fdddef848544bd1a12d ld.so.conf"
sha256sums="47a3aab527fb1511d6fb3c01793bab1ab600970d5b8b87c8d452c90a67027e99 glibc-bin-2.25-0-x86_64.tar.gz
sha256sums="817622b99254ae47a48fe838cfbee82222e88bfd553e934928c0bd65975055d4 glibc-bin-2.25.tar.gz
3be94785355b4b363d1268f133e198323441eafa6017b2b1fed32ae279d685c7 nsswitch.conf
f8eec838bace59c29a5dc04550f60e3c7ba9f3a9df7b14dae36349ad90152e00 ld.so.conf"
sha512sums="14b5d923b375dd34656554d61ce641920f8d11049a9c2ea48eadb3febb3c700105153f0e50f88793d67cde8e40f0f7848928e6c74cec344b64cbd4f866578a05 glibc-bin-2.25-0-x86_64.tar.gz
sha512sums="a991cf09479b06e0d41c382dae59b13cd8eb5e70e4c5f1494fc727ca97f6417d06939a5566c7597d4ec75dfc43c9f67b7c759bad53335731ecb3a79961007ed8 glibc-bin-2.25.tar.gz
478bdd9f7da9e6453cca91ce0bd20eec031e7424e967696eb3947e3f21aa86067aaf614784b89a117279d8a939174498210eaaa2f277d3942d1ca7b4809d4b7e nsswitch.conf
2912f254f8eceed1f384a1035ad0f42f5506c609ec08c361e2c0093506724a6114732db1c67171c8561f25893c0dd5c0c1d62e8a726712216d9b45973585c9f7 ld.so.conf"

0 comments on commit d65d1ff

Please sign in to comment.