Changed from / to /usr where appropriate
This commit is contained in:
parent
f849b3f7ba
commit
3182a6f943
20 changed files with 297 additions and 105 deletions
10
lazy.sh
10
lazy.sh
|
@ -48,13 +48,13 @@ if [ "$i" = "1" ]; then
|
|||
echo "Installing $1"
|
||||
mkdir -p /tmp/lazybox/$1 || exit 1
|
||||
tar -xf $1 -C /tmp/lazybox/$1 || tar_fail
|
||||
stat /tmp/lazybox/$1/lib/lazypkg/ >/dev/null || stat_fail
|
||||
stat /tmp/lazybox/$1/usr/share/lazypkg/ >/dev/null || stat_fail
|
||||
tar -xf $1 -C /
|
||||
rm -r /tmp/lazybox/$1
|
||||
elif [ "$f" = "1" ]; then
|
||||
stat /lib/lazypkg/$1 > /dev/null || find_fail
|
||||
sed -n '/\[fs\]/,$p' /lib/lazypkg/$1 | grep -v "\[fs\]"
|
||||
stat /usr/share/lazypkg/$1 > /dev/null || find_fail
|
||||
sed -n '/\[fs\]/,$p' /usr/share/lazypkg/$1 | grep -v "\[fs\]"
|
||||
elif [ "$l" = "1" ]; then
|
||||
stat /lib/lazypkg/$1 > /dev/null || find_fail
|
||||
sed -n '/\[license\]/,/\[fs\]/{/\[license\]\|\[fs\]/!p}' /lib/lazypkg/$1
|
||||
stat /usr/share/lazypkg/$1 > /dev/null || find_fail
|
||||
sed -n '/\[license\]/,/\[fs\]/{/\[license\]\|\[fs\]/!p}' /usr/share/lazypkg/$1
|
||||
fi
|
||||
|
|
29
lazypkg.sh
29
lazypkg.sh
|
@ -5,6 +5,7 @@ export CXX=clang++
|
|||
|
||||
. ./build.sh
|
||||
dir=$(pwd)
|
||||
stat out > /dev/null && rm -rf out
|
||||
mkdir -p src
|
||||
cd src
|
||||
srcdir=$(pwd)
|
||||
|
@ -21,9 +22,9 @@ mkdir -p $dir/out/$pkgname
|
|||
pkgdir=$dir/out/$pkgname package
|
||||
|
||||
|
||||
mkdir -p $dir/out/$pkgname/lib/lazypkg
|
||||
mkdir -p $dir/out/$pkgname/usr/share/lazypkg
|
||||
|
||||
cat > $dir/out/$pkgname/lib/lazypkg/$pkgname << EOF
|
||||
cat > $dir/out/$pkgname/usr/share/lazypkg/$pkgname << EOF
|
||||
[pkg]
|
||||
name=$pkgname
|
||||
ver=$pkgver
|
||||
|
@ -31,15 +32,15 @@ ver=$pkgver
|
|||
[license]
|
||||
EOF
|
||||
|
||||
chmod 644 $dir/out/$pkgname/lib/lazypkg/$pkgname
|
||||
chmod 644 $dir/out/$pkgname/usr/share/lazypkg/$pkgname
|
||||
cd $srcdir
|
||||
license >> $dir/out/$pkgname/lib/lazypkg/$pkgname
|
||||
license >> $dir/out/$pkgname/usr/share/lazypkg/$pkgname
|
||||
|
||||
echo >> $dir/out/$pkgname/lib/lazypkg/$pkgname
|
||||
echo [fs] >> $dir/out/$pkgname/lib/lazypkg/$pkgname
|
||||
echo >> $dir/out/$pkgname/usr/share/lazypkg/$pkgname
|
||||
echo [fs] >> $dir/out/$pkgname/usr/share/lazypkg/$pkgname
|
||||
|
||||
cd $dir/out/$pkgname/
|
||||
find * >> $dir/out/$pkgname/lib/lazypkg/$pkgname
|
||||
find * >> $dir/out/$pkgname/usr/share/lazypkg/$pkgname
|
||||
|
||||
cd $dir/out/$pkgname
|
||||
tar -cf ../$pkgname.$pkgver.tar.xz *
|
||||
|
@ -53,9 +54,9 @@ echo $ext | tr ':' '\n' | while read e; do
|
|||
|
||||
package_\$(echo \$e | tr '-' '_')
|
||||
|
||||
mkdir -p $dir/out/$pkgname-\$e/lib/lazypkg
|
||||
mkdir -p $dir/out/$pkgname-\$e/usr/share/lazypkg
|
||||
|
||||
cat > $dir/out/$pkgname-\$e/lib/lazypkg/$pkgname-\$e << EOF
|
||||
cat > $dir/out/$pkgname-\$e/usr/share/lazypkg/$pkgname-\$e << EOF
|
||||
[pkg]
|
||||
name=$pkgname-\$e
|
||||
ver=$pkgver
|
||||
|
@ -63,16 +64,16 @@ ver=$pkgver
|
|||
[license]
|
||||
EOF
|
||||
|
||||
chmod 644 $dir/out/$pkgname-\$e/lib/lazypkg/$pkgname-\$e
|
||||
chmod 644 $dir/out/$pkgname-\$e/usr/share/lazypkg/$pkgname-\$e
|
||||
cd $srcdir
|
||||
license >> $dir/out/$pkgname-\$e/lib/lazypkg/$pkgname-\$e
|
||||
license >> $dir/out/$pkgname-\$e/usr/share/lazypkg/$pkgname-\$e
|
||||
|
||||
echo >> $dir/out/$pkgname-\$e/lib/lazypkg/$pkgname-\$e
|
||||
echo [fs] >> $dir/out/$pkgname-\$e/lib/lazypkg/$pkgname-\$e
|
||||
echo >> $dir/out/$pkgname-\$e/usr/share/lazypkg/$pkgname-\$e
|
||||
echo [fs] >> $dir/out/$pkgname-\$e/usr/share/lazypkg/$pkgname-\$e
|
||||
|
||||
cd $dir/out/$pkgname-\$e
|
||||
|
||||
find * >> $dir/out/$pkgname-\$e/lib/lazypkg/$pkgname-\$e
|
||||
find * >> $dir/out/$pkgname-\$e/usr/share/lazypkg/$pkgname-\$e
|
||||
|
||||
cd $dir/out/$pkgname-\$e
|
||||
tar -cf ../$pkgname-\$e.$pkgver.tar.xz *
|
||||
|
|
|
@ -9,25 +9,27 @@ fetch() {
|
|||
mv $pkgname $pkgname-$pkgver
|
||||
cd $pkgname-$pkgver
|
||||
patch ./boot-strap < ../../no-test.patch
|
||||
patch ./install-sh < ../../install.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
./configure --prefix=/
|
||||
./configure --prefix=/usr
|
||||
sh ./make-bootstrap.sh
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $pkgname-$pkgver
|
||||
./bmake -m ./mk install DESTDIR=$pkgdir
|
||||
rm -r $pkgdir/share/man
|
||||
ln -sr $pkgdir/usr/bin/bmake $pkgdir/usr/bin/make
|
||||
rm -r $pkgdir/usr/share/man
|
||||
}
|
||||
|
||||
package_doc() {
|
||||
cd $pkgname-$pkgver
|
||||
./bmake -m ./mk install DESTDIR=$pkgdir
|
||||
rm -r $pkgdir/bin
|
||||
rm -r $pkgdir/share/mk
|
||||
rm -r $pkgdir/usr/bin
|
||||
rm -r $pkgdir/usr/share/mk
|
||||
}
|
||||
|
||||
license() {
|
||||
|
|
7
pkgs/bmake/install.patch
Normal file
7
pkgs/bmake/install.patch
Normal file
|
@ -0,0 +1,7 @@
|
|||
--- install-sh
|
||||
+++ install-sh.1
|
||||
@@ -1,3 +1,4 @@
|
||||
+#!/bin/sh
|
||||
:
|
||||
# NAME:
|
||||
# install.sh - portable version of install(1)
|
29
pkgs/busybox/build.sh
Normal file
29
pkgs/busybox/build.sh
Normal file
|
@ -0,0 +1,29 @@
|
|||
pkgver=1.33.0
|
||||
pkgname=busybox
|
||||
bad=gmake
|
||||
pkgrel=1
|
||||
|
||||
fetch() {
|
||||
curl "https://busybox.net/downloads/busybox-1.33.0.tar.bz2" -o $pkgname-$pkgver.tar.gz
|
||||
tar -xf $pkgname-$pkgver.tar.gz
|
||||
}
|
||||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
gmake HOSTCC=cc CC=cc CFLAGS=-O0 defconfig
|
||||
gmake HOSTCC=cc CC=cc CFLAGS=-O0
|
||||
gmake HOSTCC=cc CC=cc CFLAGS=-O0 install
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $pkgname-$pkgver
|
||||
install -d $pkgdir
|
||||
cp -r ./_install/* $pkgdir
|
||||
rm $pkgdir/bin/ln
|
||||
rm $pkgdir/usr/bin/install
|
||||
}
|
||||
|
||||
license() {
|
||||
cd $pkgname-$pkgver
|
||||
cat LICENSE
|
||||
}
|
|
@ -11,7 +11,7 @@ fetch() {
|
|||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
./configure \
|
||||
--prefix=/ \
|
||||
--prefix=/usr \
|
||||
--program-prefix=b \
|
||||
--enable-btyacc
|
||||
make
|
||||
|
@ -20,15 +20,14 @@ build() {
|
|||
package() {
|
||||
cd $pkgname-$pkgver
|
||||
make install DESTDIR=$pkgdir
|
||||
cd $pkgdir/bin
|
||||
ln -s byacc yacc
|
||||
rm -r $pkgdir/share
|
||||
ln -sr $pkgdir/usr/bin/byacc $pkgdir/usr/bin/yacc
|
||||
rm -r $pkgdir/usr/share
|
||||
}
|
||||
|
||||
package_doc() {
|
||||
cd $pkgname-$pkgver
|
||||
make install DESTDIR=$pkgdir
|
||||
rm -r $pkgdir/bin
|
||||
rm -r $pkgdir/usr/bin
|
||||
}
|
||||
|
||||
license() {
|
||||
|
|
|
@ -11,19 +11,19 @@ fetch() {
|
|||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
gmake NO_PERL=1 NO_REGEX=NeedsStartEnd NO_TCLTK=1 NO_MSGFMT_EXTENDED_OPTIONS=1 prefix=/ INSTALL_SYMLINKS=1
|
||||
gmake NO_PERL=1 NO_REGEX=NeedsStartEnd NO_TCLTK=1 NO_MSGFMT_EXTENDED_OPTIONS=1 prefix=/usr gitexecdir=lib/gitcore INSTALL_SYMLINKS=1
|
||||
# Need to run twice for it to work ¯\_(ツ)_/¯
|
||||
# Some issue with `msgfmt` 'cause I'm using gettext-tiny but idk why it works on the second run
|
||||
gmake NO_PERL=1 NO_REGEX=NeedsStartEnd NO_TCLTK=1 NO_MSGFMT_EXTENDED_OPTIONS=1 prefix=/ INSTALL_SYMLINKS=1
|
||||
gmake NO_PERL=1 NO_REGEX=NeedsStartEnd NO_TCLTK=1 NO_MSGFMT_EXTENDED_OPTIONS=1 prefix=/usr gitexecdir=lib/gitcore INSTALL_SYMLINKS=1
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $pkgname-$pkgver
|
||||
gmake NO_PERL=1 NO_REGEX=NeedsStartEnd NO_TCLTK=1 NO_MSGFMT_EXTENDED_OPTIONS=1 install prefix=/ DESTDIR=$pkgdir INSTALL_SYMLINKS=1
|
||||
gmake NO_PERL=1 NO_REGEX=NeedsStartEnd NO_TCLTK=1 NO_MSGFMT_EXTENDED_OPTIONS=1 install prefix=/usr gitexecdir=lib/gitcore DESTDIR=$pkgdir INSTALL_SYMLINKS=1
|
||||
}
|
||||
|
||||
package_doc() {
|
||||
gmake NO_PERL=1 NO_REGEX=NeedsStartEnd NO_TCLTK=1 NO_MSGFMT_EXTENDED_OPTIONS=1 install-man prefix=/ DESTDIR=$pkgdir INSTALL_SYMLINKS=1
|
||||
gmake NO_PERL=1 NO_REGEX=NeedsStartEnd NO_TCLTK=1 NO_MSGFMT_EXTENDED_OPTIONS=1 install-man prefix=/usr DESTDIR=$pkgdir INSTALL_SYMLINKS=1
|
||||
}
|
||||
|
||||
license() {
|
||||
|
|
|
@ -18,19 +18,19 @@ build() {
|
|||
package() {
|
||||
cd $pkgname-$pkgver
|
||||
cd src
|
||||
ckati install DESTDIR=$pkgdir PREFIX=/
|
||||
rm -r $pkgdir/share/doc
|
||||
rm -r $pkgdir/share/man
|
||||
rm -r $pkgdir/libexec
|
||||
ckati install DESTDIR=$pkgdir PREFIX=/usr
|
||||
rm -r $pkgdir/usr/share/doc
|
||||
rm -r $pkgdir/usr/share/man
|
||||
rm -r $pkgdir/usr/libexec
|
||||
}
|
||||
|
||||
package_doc() {
|
||||
cd $pkgname-$pkgver
|
||||
cd src
|
||||
ckati install DESTDIR=$pkgdir PREFIX=/
|
||||
rm -r $pkgdir/share/kak
|
||||
rm -r $pkgdir/libexec
|
||||
rm -r $pkgdir/bin
|
||||
ckati install DESTDIR=$pkgdir PREFIX=/usr
|
||||
rm -r $pkgdir/usr/share/kak
|
||||
rm -r $pkgdir/usr/libexec
|
||||
rm -r $pkgdir/usr/bin
|
||||
}
|
||||
|
||||
license() {
|
||||
|
|
|
@ -1,23 +1,24 @@
|
|||
pkgver=0.0.0
|
||||
pkgver=master
|
||||
pkgname=kati
|
||||
pkgrel=1
|
||||
|
||||
fetch() {
|
||||
git clone --depth=1 "https://github.com/google/kati"
|
||||
curl -L "https://github.com/google/kati/archive/master.tar.gz" -o $pkgname-$pkgver.tar.gz
|
||||
tar -xf $pkgname-$pkgver.tar.gz
|
||||
}
|
||||
|
||||
build() {
|
||||
cd $pkgname
|
||||
ckati
|
||||
cd $pkgname-$pkgver
|
||||
gmake
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $pkgname
|
||||
install -d $pkgdir/bin
|
||||
install -Dm755 ./ckati $pkgdir/bin/
|
||||
cd $pkgname-$pkgver
|
||||
install -d $pkgdir/usr/bin
|
||||
install -Dm755 ./ckati $pkgdir/usr/bin/
|
||||
}
|
||||
|
||||
license() {
|
||||
cd $pkgname
|
||||
cd $pkgname-$pkgver
|
||||
cat LICENSE
|
||||
}
|
||||
|
|
|
@ -19,14 +19,13 @@ build() {
|
|||
package() {
|
||||
cd $pkgname-$pkgver
|
||||
install -d $pkgdir/bin
|
||||
install -Dm755 lazy.sh $pkgdir/bin/lazy
|
||||
install -Dm755 lazy.sh $pkgdir/usr/sbin/lazy
|
||||
}
|
||||
|
||||
package_dev() {
|
||||
cd $pkgname-$pkgver
|
||||
install -d $pkgdir/bin
|
||||
install -Dm755 lazypkg.sh $pkgdir/bin/lazypkg
|
||||
|
||||
install -Dm755 lazypkg.sh $pkgdir/usr/bin/lazypkg
|
||||
}
|
||||
|
||||
license() {
|
||||
|
|
|
@ -13,31 +13,82 @@ build() {
|
|||
cd $pkgname-$pkgver
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake -G Ninja \
|
||||
cmake -G Ninja -Wno-dev \
|
||||
-DCMAKE_C_COMPILER=clang \
|
||||
-DCMAKE_CXX_COMPILER=clang++ \
|
||||
-DCMAKE_INSTALL_PREFIX=/ \
|
||||
-DCMAKE_C_COMPILER_TARGET=x86_64-musl-linux-musl \
|
||||
-DCMAKE_CXX_COMPILER_TARGET=x86_64-musl-linux-musl \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DLLVM_VERSION_SUFFIX="" \
|
||||
-DLLVM_APPEND_VC_REV=OFF \
|
||||
-DLLVM_ENABLE_PROJECTS="libunwind;libcxxabi;libcxx;compiler-rt;llvm;lld;clang" \
|
||||
-DLLVM_ENABLE_LLD=ON \
|
||||
-DLLVM_ENABLE_PROJECTS="libunwind;libcxx;libcxxabi;compiler-rt" \
|
||||
-DLLVM_TARGETS_TO_BUILD=X86 \
|
||||
-DLLVM_TARGETS_TO_BUILD="X86" \
|
||||
-DLLVM_INSTALL_BINUTILS_SYMLINKS=ON \
|
||||
-DLLVM_INSTALL_CCTOOLS_SYMLINKS=ON \
|
||||
-DLLVM_INCLUDE_EXAMPLES=OFF \
|
||||
-DLLVM_ENABLE_PIC=ON \
|
||||
-DLLVM_ENABLE_LTO=OFF \
|
||||
-DLLVM_INCLUDE_GO_TESTS=OFF \
|
||||
-DLLVM_INCLUDE_TESTS=OFF \
|
||||
-DLLVM_HOST_TRIPLE=x86_64-unknown-linux-musl \
|
||||
-DLLVM_DEFAULT_TARGET_TRIPLE=x86_64-unknown-linux-musl \
|
||||
-DLLVM_ENABLE_LIBXML2=OFF \
|
||||
-DLLVM_ENABLE_ZLIB=OFF\
|
||||
-DLLVM_BUILD_LLVM_DYLIB=ON \
|
||||
-DLLVM_LINK_LLVM_DYLIB=ON \
|
||||
-DLLVM_OPTIMIZED_TABLEGEN=ON \
|
||||
-DLLVM_INCLUDE_BENCHMARKS=OFF \
|
||||
-DLLVM_INCLUDE_DOCS=OFF \
|
||||
-DLLVM_TOOL_LLVM_ITANIUM_DEMANGLE_FUZZER_BUILD=OFF \
|
||||
-DLLVM_TOOL_LLVM_MC_ASSEMBLE_FUZZER_BUILD=OFF \
|
||||
-DLLVM_TOOL_LLVM_MC_DISASSEMBLE_FUZZER_BUILD=OFF \
|
||||
-DLLVM_TOOL_LLVM_OPT_FUZZER_BUILD=OFF \
|
||||
-DLLVM_TOOL_LLVM_MICROSOFT_DEMANGLE_FUZZER_BUILD=OFF \
|
||||
-DLLVM_TOOL_LLVM_GO_BUILD=OFF \
|
||||
-DLLVM_INSTALL_UTILS=ON \
|
||||
-DLLVM_ENABLE_LIBCXX=ON \
|
||||
-DLLVM_STATIC_LINK_CXX_STDLIB=ON \
|
||||
-DLLVM_ENABLE_LIBEDIT=OFF \
|
||||
-DLLVM_ENABLE_TERMINFO=OFF \
|
||||
-DLIBCXX_ENABLE_FILESYSTEM=ON \
|
||||
-DLIBCXX_USE_COMPILER_RT=ON \
|
||||
-DLIBCXX_HAS_MUSL_LIBC=ON \
|
||||
-DLIBCXX_ENABLE_STATIC_ABI_LIBRARY=ON \
|
||||
-DLIBCXX_STATICALLY_LINK_ABI_IN_SHARED_LIBRARY=ON \
|
||||
-DLIBCXX_STATICALLY_LINK_ABI_IN_STATIC_LIBRARY=ON \
|
||||
-DLIBCXX_INSTALL_LIBRARY=ON \
|
||||
-DLIBCXXABI_ENABLE_ASSERTIONS=ON \
|
||||
-DLIBCXXABI_USE_COMPILER_RT=ON \
|
||||
-DLIBCXXABI_USE_LLVM_UNWINDER=ON \
|
||||
-DLIBCXXABI_ENABLE_STATIC_UNWINDER=ON \
|
||||
-DLIBCXXABI_STATICALLY_LINK_UNWINDER_IN_SHARED_LIBRARY=YES \
|
||||
-DLIBCXXABI_ENABLE_SHARED=ON \
|
||||
-DLIBCXXABI_ENABLE_SHARED=OFF \
|
||||
-DLIBCXXABI_ENABLE_STATIC=ON \
|
||||
-DLIBCXXABI_INSTALL_LIBRARY=ON \
|
||||
-DLIBUNWIND_ENABLE_SHARED=ON \
|
||||
-DLIBUNWIND_ENABLE_STATIC=ON \
|
||||
-DLIBUNWIND_INSTALL_LIBRARY=ON \
|
||||
-DLIBUNWIND_USE_COMPILER_RT=ON \
|
||||
-DCLANG_DEFAULT_LINKER=lld \
|
||||
-DCLANG_DEFAULT_CXX_STDLIB='libc++' \
|
||||
-DCLANG_DEFAULT_RTLIB=compiler-rt \
|
||||
-DCLANG_DEFAULT_UNWINDLIB=libunwind \
|
||||
-DCLANG_VENDOR="LazyBox" \
|
||||
-DCLANG_ENABLE_STATIC_ANALYZER=OFF \
|
||||
-DCLANG_ENABLE_ARCMT=OFF \
|
||||
-DCLANG_LINK_CLANG_DYLIB=OFF \
|
||||
-DCOMPILER_RT_USE_BUILTINS_LIBRARY=ON \
|
||||
-DCOMPILER_RT_DEFAULT_TARGET_ONLY=OFF \
|
||||
-DCOMPILER_RT_INCLUDE_TESTS=OFF \
|
||||
-DCOMPILER_RT_BUILD_SANITIZERS=OFF \
|
||||
-DCOMPILER_RT_BUILD_XRAY=OFF \
|
||||
-DCOMPILER_RT_INCLUDE_TESTS=OFF \
|
||||
-DCOMPILER_RT_BUILD_LIBFUZZER=OFF \
|
||||
-DENABLE_EXPERIMENTAL_NEW_PASS_MANAGER=TRUE \
|
||||
../llvm
|
||||
# -DLIBCXX_HAS_MUSL_LIBC=ON \
|
||||
|
||||
samu
|
||||
}
|
||||
|
||||
|
|
31
pkgs/mksh/build.sh
Normal file
31
pkgs/mksh/build.sh
Normal file
|
@ -0,0 +1,31 @@
|
|||
pkgver=59c
|
||||
pkgname=mksh
|
||||
bad=""
|
||||
ext="doc"
|
||||
|
||||
fetch() {
|
||||
curl http://www.mirbsd.org/MirOS/dist/mir/mksh/mksh-R59c.tgz -o $pkgname-$pkgver.tar.gz
|
||||
tar -xf $pkgname-$pkgver.tar.gz
|
||||
}
|
||||
|
||||
build() {
|
||||
cd $pkgname
|
||||
sh Build.sh
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $pkgname
|
||||
install -d $pkgdir/bin
|
||||
install -Dm755 ./mksh $pkgdir/bin
|
||||
ln -sr $pkgdir/bin/mksh $pkgdir/bin/bash
|
||||
}
|
||||
|
||||
package_doc() {
|
||||
cd $pkgname
|
||||
install -d $pkgdir/usr/share/man/man1
|
||||
install -Dm 644 ./mksh.1 $pkgdir/usr/share/man/man1
|
||||
}
|
||||
|
||||
license() {
|
||||
curl http://www.mirbsd.org/TaC-mksh.txt
|
||||
}
|
|
@ -10,23 +10,30 @@ fetch() {
|
|||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
./configure --prefix=/ --enable-wrapper=no
|
||||
make
|
||||
./configure \
|
||||
--prefix=/ \
|
||||
--enable-wrapper=no
|
||||
gmake
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $pkgname-$pkgver
|
||||
make install DESTDIR=$pkgdir
|
||||
gmake install DESTDIR=$pkgdir
|
||||
rm -r $pkgdir/include
|
||||
rm $pkgdir/lib/*.a
|
||||
rm $pkgdir/lib/*.o
|
||||
install -d $pkgdir/usr/bin
|
||||
cd $pkgdir/usr/bin
|
||||
ln -s ../../lib/ld-musl*.so.? ldd
|
||||
}
|
||||
|
||||
package_dev() {
|
||||
cd $pkgname-$pkgver
|
||||
make install DESTDIR=$pkgdir
|
||||
gmake install DESTDIR=$pkgdir
|
||||
rm $pkgdir/lib/*.so
|
||||
rm $pkgdir/lib/*.so.?
|
||||
install -d $pkgdir/usr/
|
||||
mv $pkgdir/* $pkgdir/usr/
|
||||
}
|
||||
|
||||
license() {
|
||||
|
|
|
@ -15,28 +15,28 @@ build() {
|
|||
|
||||
package() {
|
||||
cd $pkgname-$pkgver
|
||||
ckati install DESTDIR=$pkgdir PREFIX=/
|
||||
rm -r $pkgdir/share
|
||||
rm $pkgdir/lib/*.a
|
||||
rm -r $pkgdir/include
|
||||
rm -r $pkgdir/lib/pkgconfig
|
||||
ckati install DESTDIR=$pkgdir PREFIX=/usr
|
||||
rm -r $pkgdir/usr/share
|
||||
rm $pkgdir/usr/lib/*.a
|
||||
rm -r $pkgdir/usr/include
|
||||
rm -r $pkgdir/usr/lib/pkgconfig
|
||||
}
|
||||
|
||||
package_doc() {
|
||||
cd $pkgname-$pkgver
|
||||
ckati install DESTDIR=$pkgdir PREFIX=/
|
||||
rm -r $pkgdir/bin
|
||||
rm -r $pkgdir/lib
|
||||
rm -r $pkgdir/include
|
||||
ckati install DESTDIR=$pkgdir PREFIX=/usr
|
||||
rm -r $pkgdir/usr/bin
|
||||
rm -r $pkgdir/usr/lib
|
||||
rm -r $pkgdir/usr/include
|
||||
}
|
||||
|
||||
package_dev() {
|
||||
cd $pkgname-$pkgver
|
||||
ckati install DESTDIR=$pkgdir PREFIX=/
|
||||
rm $pkgdir/lib/*.so
|
||||
rm -r $pkgdir/include
|
||||
rm -r $pkgdir/share
|
||||
rm -r $pkgdir/bin
|
||||
ckati install DESTDIR=$pkgdir PREFIX=/usr
|
||||
rm $pkgdir/usr/lib/*.so
|
||||
rm -r $pkgdir/usr/include
|
||||
rm -r $pkgdir/usr/share
|
||||
rm -r $pkgdir/usr/bin
|
||||
}
|
||||
|
||||
license() {
|
||||
|
|
|
@ -17,16 +17,14 @@ build() {
|
|||
|
||||
package() {
|
||||
cd $pkgname-$pkgver
|
||||
install -d $pkgdir/bin
|
||||
install -Dm4755 om4 $pkgdir/bin
|
||||
cd $pkgdir/bin
|
||||
ln -s om4 m4
|
||||
install -d $pkgdir/usr/bin
|
||||
install -Dm4755 om4 $pkgdir/usr/bin
|
||||
ln -sr $pkgdir/usr/bin/om4 $pkgdir/usr/bin/m4
|
||||
}
|
||||
|
||||
package_doc() {
|
||||
cd $pkgname-$pkgver
|
||||
install -d $pkgdir/share/man/
|
||||
install -d $pkgdir/share/man/man1
|
||||
install -d $pkgdir/usr/share/man/man1
|
||||
install -Dm644 m4.1 $pkgdir/share/man/man1
|
||||
}
|
||||
|
||||
|
|
47
pkgs/python/build.sh
Normal file
47
pkgs/python/build.sh
Normal file
|
@ -0,0 +1,47 @@
|
|||
pkgname=python
|
||||
pkgver=3.9.1
|
||||
bad=""
|
||||
ext="doc"
|
||||
|
||||
fetch() {
|
||||
curl "https://www.python.org/ftp/python/3.9.1/Python-3.9.1.tar.xz" -o $pkgname-$pkgver.tar.xz
|
||||
tar -xf $pkgname-$pkgver.tar.xz
|
||||
mv Python-$pkgver $pkgname-$pkgver
|
||||
}
|
||||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--with-system-ffi=false \
|
||||
ax_cv_c_float_words_bigendian=no
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $pkgname-$pkgver
|
||||
make install DESTDIR=$pkgdir
|
||||
rm -r $pkgdir/usr/lib/python3.9/test
|
||||
rm -r $pkgdir/usr/lib/python3.9/ctypes/test
|
||||
rm -r $pkgdir/usr/lib/python3.9/distutils/tests
|
||||
rm -r $pkgdir/usr/lib/python3.9/idlelib/idle_test
|
||||
rm -r $pkgidr/usr/lib/python3.9/lib2to3/tests
|
||||
rm -r $pkgidr/usr/lib/python3.9/sqlite3/test
|
||||
rm -r $pkgdir/usr/lib/python3.9/tkinter/test
|
||||
rm -r $pkgdir/usr/lib/python3.9/unittest/test
|
||||
rm -r $pkgdir/usr/share
|
||||
ln -sr $pkgdir/usr/bin/python3 $pkgdir/usr/bin/python
|
||||
}
|
||||
|
||||
package_doc() {
|
||||
cd $pkgname-$pkgver
|
||||
make install DESTDIR=$pkgdir
|
||||
rm -r $pkgdir/lib
|
||||
rm -r $pkgdir/bin
|
||||
rm -r $pkgdir/include
|
||||
}
|
||||
|
||||
license() {
|
||||
cd $pkgname-$pkgver
|
||||
cat LICENSE
|
||||
}
|
|
@ -3,7 +3,7 @@ pkgname=samurai
|
|||
pkgrel=1
|
||||
|
||||
fetch() {
|
||||
curl -L "https://github.com/michaelforney/samurai/releases/download/1.2/$pkgname-$pkgver.tar.gz" -o $pkgname-$pkgver.tar.gz
|
||||
curl -L "http://github.com/michaelforney/samurai/releases/download/1.2/$pkgname-$pkgver.tar.gz" -o $pkgname-$pkgver.tar.gz
|
||||
tar -xf $pkgname-$pkgver.tar.gz
|
||||
}
|
||||
|
||||
|
|
|
@ -5,18 +5,24 @@ pkgrel=1
|
|||
fetch() {
|
||||
curl "http://www.landley.net/toybox/downloads/$pkgname-$pkgver.tar.gz" -o $pkgname-$pkgver.tar.gz
|
||||
tar -xf $pkgname-$pkgver.tar.gz
|
||||
cd $pkgname-$pkgver
|
||||
patch -p1 < ../../mksh-make.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
make defconfig
|
||||
make
|
||||
gmake defconfig
|
||||
gmake
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $pkgname-$pkgver
|
||||
install -d $pkgdir/bin
|
||||
install -Dm755 ./toybox $pkgdir/bin/
|
||||
ln -sr $pkgdir/bin/toybox $pkgdir/bin/ln
|
||||
install -d $pkgdir/usr/bin
|
||||
cd $pkgdir/usr/bin
|
||||
ln -sr $pkgdir/bin/toybox $pkgdir/usr/bin/install
|
||||
}
|
||||
|
||||
license() {
|
||||
|
|
14
pkgs/toybox/mksh-make.patch
Normal file
14
pkgs/toybox/mksh-make.patch
Normal file
|
@ -0,0 +1,14 @@
|
|||
diff --git a/scripts/make.sh b/scripts/make.sh
|
||||
index 5b2d5d81..2c5e4b93 100755
|
||||
--- a/scripts/make.sh
|
||||
+++ b/scripts/make.sh
|
||||
@@ -106,8 +106,7 @@ genbuildsh()
|
||||
echo '$BUILD $FILES $LINK'
|
||||
}
|
||||
|
||||
-if ! cmp -s <(genbuildsh 2>/dev/null | head -n 6 ; echo LINK="'"$LDOPTIMIZE $LDFLAGS) \
|
||||
- <(head -n 7 generated/build.sh 2>/dev/null | $SED '7s/ -o .*//')
|
||||
+if [ "$(genbuildsh 2>/dev/null | head -n 6 ; echo LINK="'"$LDOPTIMIZE $LDFLAGS)" != "$(head -n 7 generated/build.sh 2>/dev/null | $SED '7s/ -o .*//')" ]
|
||||
then
|
||||
echo -n "Library probe"
|
||||
|
Loading…
Reference in a new issue