add musl devel package

master
Drake 2 years ago
parent 30c7af0b7f
commit 4964fb8ffc

@ -0,0 +1,46 @@
#!/bin/bash
pkgname=(musl)
pkgver=1.2.3
pkgrel=1
pkgdesc="an implementation of the C standard library, alongside POSIX."
arch=(x86_64)
url="https://musl.libc.org"
license=(MIT)
groups=()
depends=()
makedepends=("cc")
provides=("libc-dev")
options=()
source=(
"https://musl.libc.org/releases/${pkgname[0]}-${pkgver}.tar.gz"
)
sha256sums=(
"7d5b0b6062521e4627e099e4c9dc8248d32a30285e959b7eecaa780cf8cfd4a4"
)
unpacked_dir="${srcdir}/${pkgname}-${pkgver}"
build() {
cd $PWD/$unpacked_dir
unset CFLAGS CXXFLAGS
#disable utmpx (don't know why but mere's package does this, so fuck it we do it too)
sed -i "/utmpx.h/s@.*@#define __NEED_time_t\n#include <bits/alltypes.h>@" \
include/utmp.h
rm src/legacy/utmpx.c include/utmpx.h
./configure --prefix=$PWD/install
make
make install
}
package() {
cd $PWD/$unpacked_dir/install
FILES=`find . -maxdepth 1 | grep "include" | grep "./"`
mkdir $pkgdir/usr && pushd $pkgdir/usr
install -d $FILES
popd
for dire in $FILES
do
install $dire/* -t $pkgdir/usr/$dire
done
}
Loading…
Cancel
Save