relocate all packages with new group names from gentoo
This commit is contained in:
1 parent
20645c750a
commit
e133dbe26f
54 files changed
+42
-40
No files matched your search
@@ -0,0 +1,55 @@
|
||||
#!/usr/bin/env bash
|
||||
name='musl'
|
||||
release='1'
|
||||
version='1.2.3'
|
||||
url='https://example.org'
|
||||
description='the musl c library (libc) implementation'
|
||||
email=' aliriza.keskin@pardus.org.tr'
|
||||
maintainer=' aliriza'
|
||||
license=('MIT')
|
||||
source=('https://musl.libc.org/releases/musl-1.2.3.tar.gz'
|
||||
'ldconfig')
|
||||
depends=( )
|
||||
makedepends=( )
|
||||
md5sums=('a507ae4f7f20bcfe566d8eb65c1af73e'
|
||||
'SKIP')
|
||||
arch=('x86_64')
|
||||
group=(dev.libs)
|
||||
|
||||
cd $name-$version
|
||||
unset CFLAGS
|
||||
unset CXXFLAGS
|
||||
setup(){
|
||||
./configure --prefix=/usr/lib64/musl \
|
||||
--exec-prefix=/usr \
|
||||
--enable-wrapper=all \
|
||||
--enable-debug \
|
||||
--syslibdir=/lib64 \
|
||||
--libdir=/usr/lib64/musl \
|
||||
--includedir=/usr/include/musl
|
||||
}
|
||||
|
||||
build(){
|
||||
make -j`nproc`
|
||||
}
|
||||
|
||||
package(){
|
||||
make install -j`nproc`
|
||||
# Alpine linux like LDSO
|
||||
local LDSO=$(make -f Makefile --eval "$(echo -e 'print-ldso:\n\t@echo $$(basename $(LDSO_PATHNAME))')" print-ldso)
|
||||
mv -f "$DESTDIR"/usr/lib64/musl/libc.so "$DESTDIR"/lib64/"$LDSO"
|
||||
ln -sf "$LDSO" "$DESTDIR"/lib64/libc.musl-$(uname -m).so.1
|
||||
ln -sf ../../../lib64/"$LDSO" "$DESTDIR"/usr/lib64/musl/libc.so
|
||||
# Glibc compability symlink
|
||||
for i in libc.so.6 libcrypt.so.1 libm.so.6 libpthread.so.0 librt.so.1 libutil.so.1; do
|
||||
ln -sf libc.so "$DESTDIR/usr/lib64/musl/$i"
|
||||
done
|
||||
# ldd
|
||||
cat >>"$DESTDIR"/usr/bin/musl-ldd <<-EOF
|
||||
#!/bin/busybox sh
|
||||
exec /usr/lib64/musl/libc.so --list "\$@"
|
||||
EOF
|
||||
chmod 755 "$DESTDIR"/usr/bin/musl-ldd
|
||||
install ../ldconfig "$DESTDIR"/usr/bin/musl-ldconfig
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user