commit 109b6afeb956af99329d85ff1ed40483e89449cb Author: BigfootACA Date: Fri Sep 20 17:09:38 2024 +0800 initial commit diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..568827b --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = arm-linux-musl + pkgdesc = Lightweight implementation of C standard library + pkgver = 1.2.5 + pkgrel = 1 + url = https://musl.libc.org + arch = i686 + arch = x86_64 + arch = aarch64 + license = MIT + depends = armv7l-linux-gnueabihf-gcc + options = staticlibs + options = !buildflags + options = !strip + source = git+https://gitea.classfun.cn:4443/mirrors/musl.git + sha512sums = SKIP + +pkgname = arm-linux-musl diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..485a77d --- /dev/null +++ b/.gitignore @@ -0,0 +1,53 @@ +*.rej +*.orig +*.swp +*.save* +*.o +*.a +*.out +*.lib +*.obj +*.dll +*.so +*.exe +*.gch +*.plist +*.mo +*.gmo +*.fd +*.iso +*.img +*.img.* +*.qcow2 +*.vhd +*.vdi +*.vmdk +*.cpio +*.cpio.* +*.ttf +*.ttc +*.pcf +*.pcf.* +*.efi +*.pkg.tar.* +vgcore.* +/build* +initramfs*.* +initrd*.* +System.map* +/cmake-build-* +/.idea +/.vscode +/.cache +CMakeCache.txt +CMakeFiles +Makefile +cmake_install.cmake +node_modules +package.json +package-lock.json +fonts.scale +fonts.dir +/src +/pkg +/musl diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..2854e9e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,51 @@ +# Maintainer: BigfootACA + +pkgname=arm-linux-musl +pkgver=1.2.5 +pkgrel=1 +pkgdesc='Lightweight implementation of C standard library' +arch=('i686' 'x86_64' 'aarch64') +url='https://musl.libc.org' +license=('MIT') +options=('staticlibs' '!buildflags' '!strip') +depends=('armv7l-linux-gnueabihf-gcc') +source=(git+https://gitea.classfun.cn:4443/mirrors/musl.git) +sha512sums=('SKIP') + +_target=arm-linux-gnueabihf +_sysroot=/usr/$_target/lib/musl + +pkgver() { + cd "$srcdir/musl" + git describe --tags --abbrev=0 | sed 's,^v,,' +} + +prepare() { + cd "$srcdir/musl" + git checkout "$(git describe --tags --abbrev=0)" +} + +build() { + cd "$srcdir/musl" + ./configure \ + --prefix=$_sysroot \ + --exec-prefix=/usr \ + --target=$_target \ + --enable-wrapper=all + make +} + +package() { + cd "$srcdir/musl" + make DESTDIR="$pkgdir" install + mv "$pkgdir"/lib/ld-musl*.so* "$pkgdir$_sysroot"/lib/ + rmdir "$pkgdir"/lib + pushd "$pkgdir"/usr/bin + local _bin + for _bin in *; do + mv "$_bin" "${_target%-gnu}-$_bin" + done + popd + install -Dm0644 README "$pkgdir"/usr/share/doc/$pkgname/README + install -Dm0644 COPYRIGHT "$pkgdir"/usr/share/licenses/$pkgname/COPYRIGHT +}