initial commit
This commit is contained in:
commit
109b6afeb9
17
.SRCINFO
Normal file
17
.SRCINFO
Normal file
@ -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
|
53
.gitignore
vendored
Normal file
53
.gitignore
vendored
Normal file
@ -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
|
51
PKGBUILD
Normal file
51
PKGBUILD
Normal file
@ -0,0 +1,51 @@
|
||||
# Maintainer: BigfootACA <bigfoot@classfun.cn>
|
||||
|
||||
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
|
||||
}
|
Loading…
Reference in New Issue
Block a user