Created
August 25, 2014 15:42
-
-
Save jprjr/65b5850e54496f75dabd to your computer and use it in GitHub Desktop.
PKGBUILD - musl 1.0.4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: TJ Vanderpoel <tj@rubyists> | |
# Contributor: John Regan <john@jrjrtech.com> | |
pkgname=musl | |
pkgver=1.0.4 | |
pkgrel=1 | |
pkgdesc="An implementation of the C/POSIX standard library intended for use on Linux-based systems" | |
arch=('i686' 'x86_64') | |
url="http://www.musl-libc.org/" | |
license=('MIT') | |
provides=('musl') | |
conflicts=('musl-mainline') | |
source=(http://www.musl-libc.org/releases/$pkgname-$pkgver.tar.gz) | |
options=(staticlibs !buildflags !strip) | |
build() { | |
cd "$srcdir/$pkgname-$pkgver" | |
if [ "$CC" != "clang" ];then | |
_my_flags="-fno-toplevel-reorder -fno-stack-protector" | |
fi | |
CFLAGS="${CFLAGS} $_my_flags" ./configure --prefix=/usr/musl --exec-prefix=/usr | |
make | |
} | |
package() { | |
cd "$srcdir/$pkgname-$pkgver" | |
make DESTDIR="$pkgdir/" install | |
install -d -m0755 "$pkgdir/usr/lib/" | |
mv "$pkgdir/lib/"ld-musl*.so* "$pkgdir/usr/lib/" | |
mkdir -p "$pkgdir"/usr/share/doc/musl | |
cp COPYRIGHT README "$pkgdir"/usr/share/doc/musl/ | |
} | |
sha256sums=('df94d1a4a02895e169d528904b1b074bfe7ebad78eb9419f59d10c0b7aa71272') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment