You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
958 B
44 lines
958 B
#!/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")
|
|
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
|
|
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 -v "include" | grep "./"`
|
|
mkdir $pkgdir/usr && cd $pkgdir/usr
|
|
install -d $FILES
|
|
#install $FILES/*
|
|
ln -sf "/usr/lib/libc.so" "${pkgdir}/usr/bin/ldd"
|
|
}
|