moving packages
This commit is contained in:
parent
815c729478
commit
41fc569409
20 changed files with 0 additions and 0 deletions
|
@ -1,24 +0,0 @@
|
|||
cflags=-I. -Ilibopenbsd -O2 -Wall -Wextra -D__linux__ -D_DEFAULT_SOURCE -D_GNU_SOURCE
|
||||
|
||||
rule yy
|
||||
command = yacc $in -o $out
|
||||
|
||||
rule cc
|
||||
command = cc $cflags -c -o $out $in
|
||||
|
||||
rule ld
|
||||
command = cc $cflags $in -o $out -lcrypt
|
||||
|
||||
build parse.c: yy parse.y
|
||||
build parse.o: cc parse.c
|
||||
build doas.o: cc doas.c
|
||||
build env.o: cc env.c
|
||||
build libopenbsd/strlcat.o: cc libopenbsd/strlcat.c
|
||||
build libopenbsd/errc.o: cc libopenbsd/errc.c
|
||||
build libopenbsd/verrc.o: cc libopenbsd/verrc.c
|
||||
build libopenbsd/progname.o: cc libopenbsd/progname.c
|
||||
build libopenbsd/readpassphrase.o: cc libopenbsd/readpassphrase.c
|
||||
build libopenbsd/strtonum.o: cc libopenbsd/strtonum.c
|
||||
build libopenbsd/closefrom.o: cc libopenbsd/closefrom.c
|
||||
build shadow.o: cc shadow.c
|
||||
build doas: ld parse.o doas.o env.o libopenbsd/strlcat.o libopenbsd/strlcpy.o libopenbsd/errc.o libopenbsd/verrc.o libopenbsd/progname.o libopenbsd/readpassphrase.o libopenbsd/strtonum.o libopenbsd/closefrom.o shadow.o
|
|
@ -1,38 +0,0 @@
|
|||
pkgver=6.8
|
||||
pkgname=doas
|
||||
pkgrel=1
|
||||
bad="gmake"
|
||||
ext="doc"
|
||||
|
||||
fetch() {
|
||||
curl -L "https://github.com/Duncaen/OpenDoas/releases/download/v6.8/opendoas-$pkgver.tar.xz" -o $pkgname-$pkgver.tar.xz
|
||||
tar -xf $pkgname-$pkgver.tar.xz
|
||||
mv opendoas-$pkgver $pkgname-$pkgver
|
||||
cp ../build.ninja $pkgname-$pkgver
|
||||
}
|
||||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
./configure --prefix=/usr
|
||||
gmake
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $pkgname-$pkgver
|
||||
install -d $pkgdir/usr/bin
|
||||
install -Dm4755 doas $pkgdir/usr/bin
|
||||
}
|
||||
|
||||
package_doc() {
|
||||
cd $pkgname-$pkgver
|
||||
install -d $pkgdir/usr/share/man/
|
||||
install -d $pkgdir/usr/share/man/man1
|
||||
install -d $pkgdir/usr/share/man/man5
|
||||
install -Dm644 doas.1 $pkgdir/usr/share/man/man1
|
||||
install -Dm644 doas.conf.5 $pkgdir/usr/share/man/man5
|
||||
}
|
||||
|
||||
license() {
|
||||
cd $pkgname-$pkgver
|
||||
cat LICENSE
|
||||
}
|
|
@ -1,31 +0,0 @@
|
|||
pkgname=exa
|
||||
pkgver=0.9.0
|
||||
ext="doc"
|
||||
|
||||
fetch() {
|
||||
curl -L "https://github.com/ogham/exa/archive/v$pkgver.tar.gz" -o $pkgname-$pkgver.tar.xz
|
||||
tar -xf $pkgname-$pkgver.tar.xz
|
||||
ln -s /usr/bin/gmake make
|
||||
}
|
||||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
PATH=$(pwd)"/..:$PATH" cargo build --release --locked --all-features
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $pkgname-$pkgver
|
||||
cd target/release
|
||||
install -Dm755 "$pkgname" "$pkgdir/usr/bin/"
|
||||
}
|
||||
|
||||
package_doc() {
|
||||
cd $pkgname-$pkgver
|
||||
cd contrib/man
|
||||
install -Dm644 $pkgname.1 $pkgdir/usr/share/man/man1/
|
||||
}
|
||||
|
||||
license() {
|
||||
cd $pkgname-$pkgver
|
||||
cat LICENCE
|
||||
}
|
|
@ -1,31 +0,0 @@
|
|||
pkgname=extra-cmake-modules
|
||||
_ver_maj_min=5.82
|
||||
pkgver=$_ver_maj_min.0
|
||||
|
||||
fetch() {
|
||||
curl -L "https://download.kde.org/stable/frameworks/$_ver_maj_min/extra-cmake-modules-$pkgver.tar.xz" -o $pkgname-$pkgver.tar.xz
|
||||
tar -xf $pkgname-$pkgver.tar.xz
|
||||
mkdir $pkgname-$pkgver/build
|
||||
}
|
||||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
cd build
|
||||
cmake -G Ninja ../ \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_INSTALL_LIBDIR=lib
|
||||
samu
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $pkgname-$pkgver
|
||||
cd build
|
||||
DESTDIR=$pkgdir samu install
|
||||
}
|
||||
|
||||
license() {
|
||||
cd $pkgname-$pkgver
|
||||
cat LICENSE
|
||||
# cat COPYING
|
||||
}
|
|
@ -1,37 +0,0 @@
|
|||
pkgver=master
|
||||
pkgname=heirloom-doctools
|
||||
pkgrel=1
|
||||
deps="musl"
|
||||
bad="gmake"
|
||||
ext="doc"
|
||||
|
||||
fetch() {
|
||||
curl -L "https://github.com/n-t-roff/heirloom-doctools/archive/master.tar.gz" -o $pkgname-$pkgver.tar.gz
|
||||
tar -xf $pkgname-$pkgver.tar.gz
|
||||
cd $pkgname-$pkgver
|
||||
cp ../../mk.config .
|
||||
}
|
||||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
./configure
|
||||
gmake
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $pkgname-$pkgver
|
||||
gmake install ROOT=$pkgdir
|
||||
rm -r $pkgdir/usr/share
|
||||
}
|
||||
|
||||
package_doc() {
|
||||
cd $pkgname-$pkgver
|
||||
gmake install ROOT=$pkgdir
|
||||
rm -r $pkgdir/usr/lib
|
||||
rm -r $pkgdir/usr/bin
|
||||
}
|
||||
|
||||
license() {
|
||||
cd $pkgname-$pkgver
|
||||
cat LICENSE
|
||||
}
|
|
@ -1,109 +0,0 @@
|
|||
#
|
||||
# A BSD-compatible install command.
|
||||
#
|
||||
INSTALL=install
|
||||
|
||||
#
|
||||
# Packaging prefix.
|
||||
#
|
||||
PREFIX=/usr
|
||||
|
||||
#
|
||||
# Where to place binaries.
|
||||
#
|
||||
BINDIR=$(PREFIX)/bin
|
||||
|
||||
#
|
||||
# Where to place libraries.
|
||||
#
|
||||
LIBDIR=$(PREFIX)/lib
|
||||
|
||||
#
|
||||
# Where to place ASCII charts and the like.
|
||||
#
|
||||
PUBDIR=$(PREFIX)/lib/doctools/pub
|
||||
|
||||
#
|
||||
# Where to place manual pages.
|
||||
#
|
||||
MANDIR=$(PREFIX)/share/man
|
||||
|
||||
#
|
||||
# Where to place the troff macro packages.
|
||||
#
|
||||
MACDIR=$(LIBDIR)/doctools/tmac
|
||||
|
||||
#
|
||||
# Where to place the troff font files.
|
||||
#
|
||||
FNTDIR=$(LIBDIR)/doctools/font
|
||||
|
||||
#
|
||||
# Where to place PostScript helper files.
|
||||
#
|
||||
PSTDIR=$(FNTDIR)/devpost/postscript
|
||||
|
||||
#
|
||||
# Where to place the nroff terminal description files.
|
||||
#
|
||||
TABDIR=$(LIBDIR)/doctools/nterm
|
||||
|
||||
#
|
||||
# Where to place troff hyphenation files.
|
||||
#
|
||||
HYPDIR=$(LIBDIR)/doctools/hyphen
|
||||
|
||||
#
|
||||
# Where to place files belonging to the "refer" utility.
|
||||
#
|
||||
REFDIR=$(LIBDIR)/reftools
|
||||
|
||||
#
|
||||
# Define this if you want troff and nroff to be able to process
|
||||
# locale-specific (8-bit) characters. It requires appropriate support
|
||||
# from the C library, so it does not work e.g. with diet libc.
|
||||
#
|
||||
EUC=-DEUC
|
||||
|
||||
#
|
||||
# Binaries are stripped with this command after installation.
|
||||
#
|
||||
STRIP=strip
|
||||
|
||||
#
|
||||
# The C compiler.
|
||||
#
|
||||
CC=cc
|
||||
|
||||
#
|
||||
# The C++ compiler.
|
||||
#
|
||||
CXX=c++
|
||||
|
||||
#
|
||||
# Compiler flags.
|
||||
#
|
||||
_CFLAGS=$(CFLAGS) $(_CPPFLAGS) $(__CDBG) $(__CLDBG)
|
||||
|
||||
#
|
||||
# C preprocessor flags.
|
||||
#
|
||||
# Use -D_GNU_SOURCE for Linux with GNU libc.
|
||||
# Use -D_INCLUDE__STDC_A1_SOURCE for HP-UX.
|
||||
#
|
||||
_CPPFLAGS=$(CPPFLAGS) -D_GNU_SOURCE
|
||||
|
||||
#
|
||||
# Linker flags.
|
||||
#
|
||||
_LDFLAGS=$(LDFLAGS) $(__CLDBG)
|
||||
|
||||
#
|
||||
# Additional libraries to link with.
|
||||
#
|
||||
#LIBS=
|
||||
|
||||
#
|
||||
# A Bourne-compatible shell.
|
||||
#
|
||||
SHELL=/bin/sh
|
|
@ -1,32 +0,0 @@
|
|||
pkgname=kbd
|
||||
pkgver=2.4.0
|
||||
|
||||
fetch() {
|
||||
curl "https://mirrors.edge.kernel.org/pub/linux/utils/kbd/kbd-$pkgver.tar.xz" -o $pkgname-$pkgver.tar.xz
|
||||
curl "https://raw.githubusercontent.com/workman-layout/Workman/master/linux_console/workman.iso15.kmap" -o workman.map
|
||||
tar -xf $pkgname-$pkgver.tar.xz
|
||||
}
|
||||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--build=x86_64-unknown-linux-musl \
|
||||
--host=x86_64-unknown-linux-musl \
|
||||
--disable-tests \
|
||||
--sysconfdir=/etc
|
||||
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $pkgname-$pkgver
|
||||
make install DESTDIR=$pkgdir
|
||||
install -d $pkgdir/usr/share/keymaps/i386/workman/
|
||||
install -Dm 644 ../workman.map $pkgdir/usr/share/keymaps/i386/workman/
|
||||
}
|
||||
|
||||
license() {
|
||||
cd $pkgname-$pkgver
|
||||
cat COPYING
|
||||
}
|
|
@ -1,22 +0,0 @@
|
|||
pkgname=man-pages-posix
|
||||
pkgver=2017
|
||||
|
||||
fetch() {
|
||||
curl "https://mirrors.edge.kernel.org/pub/linux/docs/man-pages/man-pages-posix/man-pages-posix-2017-a.tar.xz" -o $pkgname-$pkgver.tar.xz
|
||||
tar -xf $pkgname-$pkgver.tar.xz
|
||||
}
|
||||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $pkgname-$pkgver
|
||||
make install DESTDIR=$pkgdir
|
||||
}
|
||||
|
||||
license() {
|
||||
cd $pkgname-$pkgver
|
||||
cat POSIX-COPYRIGHT
|
||||
}
|
|
@ -1,40 +0,0 @@
|
|||
pkgname=pipewire
|
||||
pkgver=0.3.27
|
||||
|
||||
fetch() {
|
||||
curl "https://gitlab.freedesktop.org/pipewire/pipewire/-/archive/$pkgver/pipewire-$pkgver.tar.bz2" -o $pkgname-$pkgver.tar.xz
|
||||
tar -xf $pkgname-$pkgver.tar.xz
|
||||
mkdir $pkgname-$pkgver/build
|
||||
|
||||
cp ../no-dbus.patch .
|
||||
cd $pkgname-$pkgver
|
||||
patch -p1 < ../no-dbus.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
cd build
|
||||
meson .. \
|
||||
--buildtype=release \
|
||||
--prefix=/usr \
|
||||
--libexecdir=lib \
|
||||
-Dbluez5=disabled \
|
||||
-Dlibcamera=disabled \
|
||||
-Dexamples=disabled \
|
||||
-Dgstreamer=disabled \
|
||||
-Dlibpulse=disabled \
|
||||
-Dmedia-session=enabled \
|
||||
-Dpw-cat=enabled
|
||||
samu
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $pkgname-$pkgver
|
||||
cd build
|
||||
DESTDIR=$pkgdir samu install
|
||||
}
|
||||
|
||||
license() {
|
||||
cd $pkgname-$pkgver
|
||||
cat COPYING
|
||||
}
|
|
@ -1,84 +0,0 @@
|
|||
--- a/meson.build
|
||||
+++ b/meson.build
|
||||
@@ -306,7 +306,7 @@
|
||||
rt_lib = cc.find_library('rt', required : false) # clock_gettime
|
||||
dl_lib = cc.find_library('dl', required : false)
|
||||
pthread_lib = dependency('threads')
|
||||
-dbus_dep = dependency('dbus-1')
|
||||
+dbus_dep = dependency('dbus-1', required : false)
|
||||
sdl_dep = dependency('sdl2', required : get_option('sdl2'))
|
||||
ncurses_dep = dependency('ncursesw', required : false)
|
||||
sndfile_dep = dependency('sndfile', version : '>= 1.0.20', required : get_option('sndfile'))
|
||||
--- a/src/modules/meson.build
|
||||
+++ b/src/modules/meson.build
|
||||
@@ -110,30 +110,30 @@
|
||||
dependencies : pipewire_module_protocol_deps,
|
||||
)
|
||||
|
||||
-pipewire_module_protocol_pulse_deps = pipewire_module_protocol_deps
|
||||
-
|
||||
if dbus_dep.found()
|
||||
+ pipewire_module_protocol_pulse_deps = pipewire_module_protocol_deps
|
||||
+
|
||||
pipewire_module_protocol_pulse_deps += dbus_dep
|
||||
-endif
|
||||
|
||||
-pipewire_module_protocol_pulse = shared_library('pipewire-module-protocol-pulse',
|
||||
- [ 'module-protocol-pulse.c',
|
||||
- 'module-protocol-pulse/manager.c',
|
||||
- 'module-protocol-pulse/pulse-server.c',
|
||||
- 'module-protocol-pulse/modules/module-loopback.c',
|
||||
- 'module-protocol-pulse/modules/module-native-protocol-tcp.c',
|
||||
- 'module-protocol-pulse/modules/module-null-sink.c',
|
||||
- 'module-protocol-pulse/modules/module-remap-sink.c',
|
||||
- 'module-protocol-pulse/modules/module-remap-source.c',
|
||||
- 'module-protocol-pulse/modules/module-simple-protocol-tcp.c',
|
||||
- ],
|
||||
- c_args : pipewire_module_c_args,
|
||||
- include_directories : [configinc, spa_inc],
|
||||
- install : true,
|
||||
- install_dir : modules_install_dir,
|
||||
- install_rpath: modules_install_dir,
|
||||
- dependencies : pipewire_module_protocol_pulse_deps,
|
||||
-)
|
||||
+ pipewire_module_protocol_pulse = shared_library('pipewire-module-protocol-pulse',
|
||||
+ [ 'module-protocol-pulse.c',
|
||||
+ 'module-protocol-pulse/manager.c',
|
||||
+ 'module-protocol-pulse/pulse-server.c',
|
||||
+ 'module-protocol-pulse/modules/module-loopback.c',
|
||||
+ 'module-protocol-pulse/modules/module-native-protocol-tcp.c',
|
||||
+ 'module-protocol-pulse/modules/module-null-sink.c',
|
||||
+ 'module-protocol-pulse/modules/module-remap-sink.c',
|
||||
+ 'module-protocol-pulse/modules/module-remap-source.c',
|
||||
+ 'module-protocol-pulse/modules/module-simple-protocol-tcp.c',
|
||||
+ ],
|
||||
+ c_args : pipewire_module_c_args,
|
||||
+ include_directories : [configinc, spa_inc],
|
||||
+ install : true,
|
||||
+ install_dir : modules_install_dir,
|
||||
+ install_rpath: modules_install_dir,
|
||||
+ dependencies : pipewire_module_protocol_pulse_deps,
|
||||
+ )
|
||||
+endif
|
||||
|
||||
pipewire_module_protocol_simple = shared_library('pipewire-module-protocol-simple',
|
||||
[ 'module-protocol-simple.c' ],
|
||||
--- a/spa/plugins/support/meson.build
|
||||
+++ b/spa/plugins/support/meson.build
|
||||
@@ -32,6 +32,7 @@
|
||||
install_dir : spa_plugindir / 'support')
|
||||
endif
|
||||
|
||||
+if dbus_dep.found()
|
||||
spa_dbus_sources = ['dbus.c']
|
||||
|
||||
spa_dbus_lib = shared_library('spa-dbus',
|
||||
@@ -40,7 +41,7 @@
|
||||
dependencies : [dbus_dep, ],
|
||||
install : true,
|
||||
install_dir : spa_plugindir / 'support')
|
||||
-
|
||||
+endif
|
||||
|
||||
if systemd_dep.found()
|
||||
spa_journal_sources = ['journal.c']
|
|
@ -1,27 +0,0 @@
|
|||
pkgname=rawk
|
||||
pkgver=master
|
||||
|
||||
fetch() {
|
||||
curl -L "https://github.com/kisom/rawk/archive/refs/heads/master.tar.gz" -o $pkgname-$pkgver.tar.xz
|
||||
tar -xf $pkgname-$pkgver.tar.xz
|
||||
cp ../cp-u.patch .
|
||||
cd $pkgname-$pkgver
|
||||
patch -p1 < ../cp-u.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
PREFIX=/usr ./config.sh
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $pkgname-$pkgver
|
||||
make install PREFIX=$pkgdir/usr/
|
||||
}
|
||||
|
||||
license() {
|
||||
cd $pkgname-$pkgver
|
||||
cat LICENSE
|
||||
# cat COPYING
|
||||
}
|
|
@ -1,20 +0,0 @@
|
|||
--- a/rawk
|
||||
+++ b/rawk
|
||||
@@ -98,7 +98,7 @@
|
||||
|
||||
if [ -n "$stylesheet" ]; then
|
||||
mkdir -p "$target"/styles
|
||||
- cp -u "$stylesheet" "$target"/styles/style.css
|
||||
+ cp "$stylesheet" "$target"/styles/style.css
|
||||
fi
|
||||
|
||||
cd "$src_dir"
|
||||
@@ -119,7 +119,7 @@
|
||||
if [ -d "$i" ]; then
|
||||
mkdir -p "$o"
|
||||
else
|
||||
- cp -u "$i" "$o"
|
||||
+ cp "$i" "$o"
|
||||
fi
|
||||
;;
|
||||
esac
|
|
@ -1,30 +0,0 @@
|
|||
pkgname=rsync
|
||||
pkgver=3.2.3
|
||||
|
||||
fetch() {
|
||||
curl "https://download.samba.org/pub/rsync/src/rsync-3.2.3.tar.gz" -o $pkgname-$pkgver.tar.xz
|
||||
tar -xf $pkgname-$pkgver.tar.xz
|
||||
}
|
||||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--build=x86_64-unknown-linux-musl \
|
||||
--host=x86_64-unknown-linux-musl \
|
||||
--disable-xxhash \
|
||||
--disable-zstd \
|
||||
--disable-lz4
|
||||
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $pkgname-$pkgver
|
||||
make install DESTDIR=$pkgdir
|
||||
}
|
||||
|
||||
license() {
|
||||
cd $pkgname-$pkgver
|
||||
cat COPYING
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
--- bsect.asm
|
||||
+++ bsect.asm
|
||||
@@ -15,7 +15,6 @@
|
||||
; You should have received a copy of the GNU General Public License
|
||||
; along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
-%define DEBUG
|
||||
%include "config.inc"
|
||||
|
||||
[BITS 16]
|
|
@ -1,15 +0,0 @@
|
|||
--- build.sh
|
||||
+++ build.sh
|
||||
@@ -16,9 +16,9 @@
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
INPUT="bsect.asm"
|
||||
-OUTPUT="disk"
|
||||
-KERN="./barebones"
|
||||
-RD="./big.init"
|
||||
+OUTPUT="/tiny-linux-bootloader/disk"
|
||||
+KERN="/iglunix/isoout/vmlinuz"
|
||||
+RD="/iglunix/isoout/initramfs.img"
|
||||
|
||||
#size of kern + ramdisk
|
||||
K_SZ=`stat -c %s $KERN`
|
|
@ -1,33 +0,0 @@
|
|||
pkgname=tiny-linux-bootloader
|
||||
pkgver=master
|
||||
|
||||
fetch() {
|
||||
curl -L "https://github.com/owenson/tiny-linux-bootloader/archive/master.tar.gz" -o $pkgname-$pkgver.tar.xz
|
||||
tar -xf $pkgname-$pkgver.tar.xz
|
||||
cd $pkgname-$pkgver
|
||||
patch -p1 < ../../build.patch
|
||||
patch -p1 < ../../bsect.patch
|
||||
patch -p1 < ../../remove-dead.patch
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $pkgname-$pkgver
|
||||
|
||||
rm -rf /tiny-linux-bootloader
|
||||
mkdir /tiny-linux-bootloader
|
||||
CURR_DIR=$(pwd)
|
||||
|
||||
cd ./../../../../
|
||||
./geninitrd.sh
|
||||
|
||||
cd $CURR_DIR
|
||||
./build.sh
|
||||
|
||||
cd ./../../../../
|
||||
./createimg.sh
|
||||
}
|
||||
|
||||
license() {
|
||||
cd $pkgname-$pkgver
|
||||
cat LICENSE
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
# information about the filesystems.
|
||||
# See fstab(5) for details.
|
||||
|
||||
# <file system> <dir> <type> <options> <dump> <pass>
|
||||
/dev/sda1 / ext4 rw,relatime 0 1
|
|
@ -1,11 +0,0 @@
|
|||
--- a/bsect.asm
|
||||
+++ b/bsect.asm
|
||||
@@ -135,7 +135,7 @@
|
||||
.loop:
|
||||
cmp edx, 127*512
|
||||
jl loader.part_2
|
||||
- jz loader.finish
|
||||
+; jz loader.finish
|
||||
|
||||
mov ax, 127 ;count
|
||||
xor bx, bx ; offset
|
|
@ -1,64 +0,0 @@
|
|||
pkgname=toolchain-aarch64
|
||||
pkgver=12.0.0
|
||||
|
||||
fetch() {
|
||||
curl -L "https://github.com/llvm/llvm-project/releases/download/llvmorg-$pkgver/llvm-project-$pkgver.src.tar.xz" -o llvm-$pkgver.tar.gz
|
||||
curl "https://musl.libc.org/releases/musl-1.2.2.tar.gz" -o musl-1.2.2.tar.gz
|
||||
tar -xf llvm-$pkgver.tar.gz
|
||||
tar -xf musl-1.2.2.tar.gz
|
||||
mv llvm-project-$pkgver.src llvm-$pkgver
|
||||
mkdir llvm-$pkgver/build-compiler-rt
|
||||
mkdir sysroot
|
||||
}
|
||||
|
||||
build() {
|
||||
export pkgdir=$(pwd)/sysroot
|
||||
cd llvm-$pkgver
|
||||
cd build-compiler-rt
|
||||
cmake -G Ninja ../compiler-rt \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr/aarch64-linux-musl \
|
||||
-DCMAKE_INSTALL_LIBDIR=lib \
|
||||
-DCMAKE_C_COMPILER=clang \
|
||||
-DCMAKE_C_COMPILER_TARGET=aarch64-linux-musl \
|
||||
-DCMAKE_ASM_COMPILER=clang \
|
||||
-DCMAKE_ASM_COMPILER_TARGET=aarch64-linux-musl \
|
||||
-DCOMPILER_RT_USE_BUILTINS_LIBRARY=ON \
|
||||
-DCOMPILER_RT_BUILD_BUILTINS=ON \
|
||||
-DCOMPILER_RT_DEFAULT_TARGET_ONLY=OFF \
|
||||
-DCOMPILER_RT_DEFAULT_TARGET_TRIPLE=aarch64-linux-musl \
|
||||
-DCOMPILER_RT_INCLUDE_TESTS=OFF \
|
||||
-DCOMPILER_RT_BUILD_SANITIZERS=OFF \
|
||||
-DCOMPILER_RT_BUILD_XRAY=OFF \
|
||||
-DCOMPILER_RT_BUILD_MEMPROF=OFF \
|
||||
-DCOMPILER_RT_BUILD_PROFILE=OFF \
|
||||
-DCOMPILER_RT_INCLUDE_TESTS=OFF \
|
||||
-DCOMPILER_RT_BUILD_LIBFUZZER=OFF \
|
||||
-DCMAKE_C_FLAGS='-nostdlib' \
|
||||
-DCMAKE_ASM_FLAGS='-nostdlib' \
|
||||
-DCAN_TARGET_aarch64=YES \
|
||||
-DLIBCXX_HAS_MUSL_LIBC=ON \
|
||||
-DLLVM_CONFIG_PATH=/usr/bin/llvm-config
|
||||
|
||||
DESTDIR=$pkgdir samu install
|
||||
cd ../..
|
||||
|
||||
cd musl-1.2.2
|
||||
CFLAGS="--sysroot=$pkgdir/usr/aarch64-linux-musl/ --target=aarch64-unknown-linux-musl" AR=ar LIBCC=$pkgdir/usr/aarch64-linux-musl/lib/linux/libclang_rt.builtins-aarch64.a ./configure \
|
||||
--prefix=/usr/aarch64-linux-musl \
|
||||
--target=aarch64-unknown-linux-musl \
|
||||
--enable-wrappers=no
|
||||
|
||||
gmake
|
||||
gmake install DESTDIR=$pkgdir
|
||||
}
|
||||
|
||||
package() {
|
||||
mv sysroot/* $pkgdir
|
||||
}
|
||||
|
||||
license() {
|
||||
cd $pkgname-$pkgver
|
||||
cat LICENSE
|
||||
# cat COPYING
|
||||
}
|
|
@ -1,37 +0,0 @@
|
|||
pkgver=2.36.2
|
||||
pkgname=util-linux
|
||||
pkgrel=1
|
||||
|
||||
fetch() {
|
||||
curl "https://mirrors.edge.kernel.org/pub/linux/utils/$pkgname/v2.36/$pkgname-$pkgver.tar.xz" -o $pkgname-$pkgver.tar.xz
|
||||
tar -xf $pkgname-$pkgver.tar.xz
|
||||
cd $pkgname-$pkgver
|
||||
}
|
||||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--build=x86_64-unknown-linux-musl \
|
||||
--host=x86_64-unknown-linux-musl \
|
||||
--disable-all-programs \
|
||||
--enable-libsmartcols \
|
||||
--enable-libuuid \
|
||||
--enable-libfdisk \
|
||||
--enable-fdisks
|
||||
|
||||
|
||||
make LDFLAGS="-lterminfo"
|
||||
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $pkgname-$pkgver
|
||||
make install DESTDIR=$pkgdir
|
||||
}
|
||||
|
||||
|
||||
license() {
|
||||
cd $pkgname-$pkgver
|
||||
cat COPYING
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue