add to jenkins
This commit is contained in:
parent
76976a63aa
commit
f64959057b
7
.SRCINFO
7
.SRCINFO
@ -10,10 +10,7 @@ pkgbase = aarch64-linux-musl
|
|||||||
options = staticlibs
|
options = staticlibs
|
||||||
options = !buildflags
|
options = !buildflags
|
||||||
options = !strip
|
options = !strip
|
||||||
source = https://musl.libc.org/releases/musl-1.2.5.tar.gz
|
source = git+https://gitea.classfun.cn:4443/mirrors/musl.git
|
||||||
source = https://musl.libc.org/releases/musl-1.2.5.tar.gz.asc
|
sha512sums = SKIP
|
||||||
validpgpkeys = 836489290BB6B70F99FFDA0556BCDB593020450F
|
|
||||||
b2sums = 6065dc1e01874d1b96abe714147dcc0b41ca702ca9e9c44e85864185dab0b6d085a692745db0822c94a79325e1a91dad60c52f467717d9323b2b3c6ad0a17545
|
|
||||||
b2sums = SKIP
|
|
||||||
|
|
||||||
pkgname = aarch64-linux-musl
|
pkgname = aarch64-linux-musl
|
||||||
|
59
.gitignore
vendored
59
.gitignore
vendored
@ -1,6 +1,53 @@
|
|||||||
/src/
|
*.rej
|
||||||
/pkg/
|
*.orig
|
||||||
|
*.swp
|
||||||
*.pkg.tar*
|
*.save*
|
||||||
musl-*.tar.gz
|
*.o
|
||||||
musl-*.tar.gz.asc
|
*.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
|
||||||
|
59
PKGBUILD
59
PKGBUILD
@ -10,40 +10,43 @@ url='https://musl.libc.org'
|
|||||||
license=('MIT')
|
license=('MIT')
|
||||||
options=('staticlibs' '!buildflags' '!strip')
|
options=('staticlibs' '!buildflags' '!strip')
|
||||||
depends=('aarch64-linux-gnu-gcc')
|
depends=('aarch64-linux-gnu-gcc')
|
||||||
validpgpkeys=('836489290BB6B70F99FFDA0556BCDB593020450F')
|
source=(git+https://gitea.classfun.cn:4443/mirrors/musl.git)
|
||||||
source=(https://musl.libc.org/releases/musl-${pkgver}.tar.gz{,.asc})
|
sha512sums=('SKIP')
|
||||||
b2sums=('6065dc1e01874d1b96abe714147dcc0b41ca702ca9e9c44e85864185dab0b6d085a692745db0822c94a79325e1a91dad60c52f467717d9323b2b3c6ad0a17545'
|
|
||||||
'SKIP')
|
|
||||||
|
|
||||||
_target=aarch64-linux-gnu
|
_target=aarch64-linux-gnu
|
||||||
_sysroot=/usr/$_target/lib/musl
|
_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() {
|
build() {
|
||||||
cd musl-$pkgver
|
cd "$srcdir/musl"
|
||||||
./configure --prefix=$_sysroot \
|
./configure
|
||||||
--exec-prefix=/usr \
|
--prefix=$_sysroot \
|
||||||
--target=$_target \
|
--exec-prefix=/usr \
|
||||||
--enable-wrapper=all
|
--target=$_target \
|
||||||
make
|
--enable-wrapper=all
|
||||||
|
make
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd musl-$pkgver
|
cd "$srcdir/musl"
|
||||||
make DESTDIR="$pkgdir" install
|
make DESTDIR="$pkgdir" install
|
||||||
|
mv "$pkgdir"/lib/ld-musl*.so* "$pkgdir$_sysroot"/lib/
|
||||||
# configure syslibdir with /lib for PT_INTERP compat, but install to /usr/lib
|
rmdir "$pkgdir"/lib
|
||||||
mv "$pkgdir"/lib/ld-musl*.so* "$pkgdir$_sysroot"/lib/
|
pushd "$pkgdir"/usr/bin
|
||||||
rmdir "$pkgdir"/lib
|
local _bin
|
||||||
|
for _bin in *; do
|
||||||
pushd "$pkgdir"/usr/bin
|
mv "$_bin" "${_target%-gnu}-$_bin"
|
||||||
local _bin
|
done
|
||||||
for _bin in *; do
|
popd
|
||||||
mv "$_bin" "${_target%-gnu}-$_bin"
|
install -Dm0644 README "$pkgdir"/usr/share/doc/$pkgname/README
|
||||||
done
|
install -Dm0644 COPYRIGHT "$pkgdir"/usr/share/licenses/$pkgname/COPYRIGHT
|
||||||
popd
|
|
||||||
|
|
||||||
install -Dm0644 README "$pkgdir"/usr/share/doc/$pkgname/README
|
|
||||||
install -Dm0644 COPYRIGHT "$pkgdir"/usr/share/licenses/$pkgname/COPYRIGHT
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# vim: et ts=2 sts=2 sw=2
|
|
||||||
|
Loading…
Reference in New Issue
Block a user