initial commit (nothing exists)
commit
12ed25312b
@ -0,0 +1,4 @@
|
|||||||
|
pkg/
|
||||||
|
src/
|
||||||
|
*.tar.gz
|
||||||
|
*.tar.zst
|
@ -0,0 +1 @@
|
|||||||
|
includes all packages necessary for rebuilding `core`, along with basic development.
|
@ -0,0 +1,43 @@
|
|||||||
|
#!/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"
|
||||||
|
}
|
Loading…
Reference in new issue