summaryrefslogtreecommitdiff
path: root/repo
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-01 21:21:05 +0000
committerdavidovski <david@davidovski.xyz>2022-05-01 21:21:05 +0000
commit606bc59d0f8f67815c6a717843835477d44db6b3 (patch)
tree687b3fe5bc844b90a3841e1ea543aa9f9934a93a /repo
parent1084afc3c4d9c83e61620de60ba59a4393a33cb0 (diff)
added ungoogled chromium
Diffstat (limited to 'repo')
-rw-r--r--repo/apps/arandr.xibuild15
-rw-r--r--repo/apps/chromium.xibuild287
-rw-r--r--repo/apps/mpv.xibuild33
-rw-r--r--repo/apps/pcmanfm.xibuild33
-rw-r--r--repo/apps/polybar.xibuild44
-rw-r--r--repo/devel/clang.xibuild4
-rw-r--r--repo/devel/compiler-rt.xibuild38
-rw-r--r--repo/devel/libexecinfo.xibuild32
-rw-r--r--repo/devel/lld.xibuild29
-rw-r--r--repo/devel/llvm-libunwind.xibuild48
-rw-r--r--repo/devel/waf.xibuild14
-rw-r--r--repo/media/aom.xibuild24
-rw-r--r--repo/media/dav1d.xibuild30
-rw-r--r--repo/media/ffmpeg.xibuild63
-rw-r--r--repo/media/ffmpeg4.xibuild64
-rw-r--r--repo/media/lame.xibuild26
-rw-r--r--repo/media/libass.xibuild23
-rw-r--r--repo/media/librist.xibuild22
-rw-r--r--repo/media/libsrt.xibuild28
-rw-r--r--repo/media/mpc-mpd.xibuild21
-rw-r--r--repo/media/mpd.xibuild42
-rw-r--r--repo/media/soxr.xibuild23
-rw-r--r--repo/media/v4l-utils.xibuild29
-rw-r--r--repo/media/vidstab.xibuild23
-rw-r--r--repo/media/x264.xibuild35
-rw-r--r--repo/media/x265.xibuild53
-rw-r--r--repo/media/xvidcore.xibuild24
-rw-r--r--repo/meta/base.xibuild2
-rw-r--r--repo/system/c-ares.xibuild23
-rw-r--r--repo/system/glew.xibuild20
-rw-r--r--repo/system/glib.xibuild10
-rw-r--r--repo/system/glm.xibuild35
-rw-r--r--repo/system/glu.xibuild24
-rw-r--r--repo/system/gobject-introspection.xibuild7
-rw-r--r--repo/system/imlib2.xibuild2
-rw-r--r--repo/system/libexif.xibuild23
-rw-r--r--repo/system/libfm-extra.xibuild31
-rw-r--r--repo/system/libfm.xibuild31
-rw-r--r--repo/system/libpng.xibuild8
-rw-r--r--repo/system/libretls.xibuild31
-rw-r--r--repo/system/menu-cache.xibuild28
-rw-r--r--repo/system/nodejs.xibuild36
-rw-r--r--repo/system/openntpd.xibuild49
-rw-r--r--repo/system/shared-mime-info.xibuild6
-rw-r--r--repo/system/tzdata.xibuild56
-rw-r--r--repo/util/fzf.xibuild1
-rw-r--r--repo/util/gawk.xibuild1
-rw-r--r--repo/util/inetutils.xibuild1
-rw-r--r--repo/util/openssh.xibuild14
-rw-r--r--repo/x11/adwaita-icon-theme.xibuild27
-rw-r--r--repo/x11/gdk-pixbuf.xibuild17
-rw-r--r--repo/x11/gsettings-desktop-schemas.xibuild26
-rw-r--r--repo/x11/gtk2.xibuild42
-rw-r--r--repo/x11/gtk3.xibuild43
-rw-r--r--repo/x11/harfbuzz.xibuild5
-rw-r--r--repo/x11/hicolor-icon-theme.xibuild24
-rw-r--r--repo/x11/libva.xibuild10
-rw-r--r--repo/x11/maim.xibuild23
-rw-r--r--repo/x11/mesa.xibuild7
-rw-r--r--repo/x11/pango.xibuild8
-rw-r--r--repo/x11/sdl2.xibuild38
-rw-r--r--repo/x11/slop.xibuild23
-rw-r--r--repo/x11/xf86-video-intel.xibuild27
-rw-r--r--repo/x11/xorg-server.xibuild29
-rw-r--r--repo/xi/xipkg.xibuild4
-rw-r--r--repo/xi/xiutils.xibuild2
66 files changed, 1854 insertions, 47 deletions
diff --git a/repo/apps/arandr.xibuild b/repo/apps/arandr.xibuild
new file mode 100644
index 0000000..7b926ff
--- /dev/null
+++ b/repo/apps/arandr.xibuild
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+NAME="arandr"
+DESC="ARandR provides a simple visual front end for XRandR"
+
+MAKEDEPS="python python-setuptools "
+DEPS="xrandr cairo python-gobject python "
+
+PKG_VER=0.1.10
+SOURCE="http://christian.amsuess.com/tools/arandr/files/arandr-$PKG_VER.tar.gz"
+
+
+package () {
+ python3 setup.py install --prefix=/usr --root=$PKG_DEST
+}
diff --git a/repo/apps/chromium.xibuild b/repo/apps/chromium.xibuild
new file mode 100644
index 0000000..2edfbd3
--- /dev/null
+++ b/repo/apps/chromium.xibuild
@@ -0,0 +1,287 @@
+#!/bin/sh
+
+NAME="chromium"
+DESC="Chromium webbrowser (ungoogled)"
+
+MAKEDEPS="meson ninja hwids compiler-rt lld pciutils"
+DEPS="alsa-lib at-spi2-atk at-spi2-core atk cairo dbus eudev expat ffmpeg4 flac font-opensans fontconfig freetype2 glib gtk3 harfbuzz lcms2 libdrm libevent libjpeg-turbo libpng pulseaudio libwebp libx11 libxcb libxcomposite libxdamage libxext libxfixes libxkbcommon libxml2 libxrandr libxslt mesa musl nspr nss opus pango re2 snappy wayland xdg-utils nodejs"
+
+PKG_VER=100.0.4896.127
+
+SOURCE="https://commondatastorage.googleapis.com/chromium-browser-official/chromium-$PKG_VER.tar.xz"
+
+fonts_package=cd96fc55dc243f6c6f4cb63ad117cad6cd48dceb
+_launcher_ver=8
+ADDITIONAL="
+https://github.com/Eloston/ungoogled-chromium/archive/$PKG_VER-1.tar.gz
+https://chromium-fonts.storage.googleapis.com/$fonts_package
+
+chromium-VirtualCursor-standard-layout.patch
+chromium-revert-drop-of-system-java.patch
+chromium-use-alpine-target.patch
+chromium.conf
+chromium-launcher.sh
+chromium.desktop
+credentials-header.patch
+default-pthread-stacksize.patch
+elf-arm.patch
+fix-narrowing-cast.patch
+fix-unittests-sandbox.patch
+gcc-arm.patch
+gdbinit.patch
+google-api.keys
+media-base.patch
+memory-tagging-arm64.patch
+musl-crashpad.patch
+musl-fixes.patch
+musl-hacks.patch
+musl-libc++.patch
+musl-sandbox.patch
+musl-stat.patch
+musl-tid-caching.patch
+musl-v8-monotonic-pthread-cont_timedwait.patch
+nasm.patch
+no-execinfo.patch
+no-getcontext.patch
+no-mallinfo.patch
+quiche-arena-size.patch
+resolver.patch
+revert-use-ffile-compilation-dir.patch
+scoped-file.patch
+system-opus.patch
+use-deprecated-ffmpeg-api.patch
+unbundle-ffmpeg-av_stream_get_first_dts.patch
+use-oauth2-client-switches-as-default.patch
+wayland-egl.patch
+webcodecs-stop-using-AudioOpusEncoder.patch
+"
+
+prepare () {
+ apply_patches
+
+ # Congratulations, you have found a bug! The bug is in the application that uses this internal glibc header
+ files="third_party/libsync/src/include/sync/sync.h
+ third_party/crashpad/crashpad/compat/linux/sys/ptrace.h
+ base/allocator/allocator_shim_internals.h"
+ for f in $files; do
+ sed -i "s/__BEGIN_DECLS/#ifdef __cplusplus\nextern \"C\" {\n#endif/g" $f
+ sed -i "s/__END_DECLS/#ifdef __cplusplus\n}\n#endif/g" $f
+ sed -i "s,#include <sys/cdefs.h>,," $f
+ done
+
+ # prevent annoying errors when regenerating gni
+ sed -i 's,^update_readme$,#update_readme,' \
+ third_party/libvpx/generate_gni.sh
+
+ # allow system dependencies in "official builds"
+ sed -i 's/OFFICIAL_BUILD/GOOGLE_CHROME_BUILD/' \
+ tools/generate_shim_headers/generate_shim_headers.py
+
+
+ tar xf chromium-launcher-$_launcher_ver.tar.gz
+ tar xf $fonts_package
+ tar xf $PKG_VER-1.tar.gz
+ ungoogled_repo="ungoogled-chromium-$PKG_VER-1"
+ utils="${ungoogled_repo}/utils"
+
+ python "$utils/prune_binaries.py" ./ "$ungoogled_repo/pruning.list"
+ python "$utils/patches.py" apply ./ "$ungoogled_repo/patches"
+ python "$utils/domain_substitution.py" apply -r "$ungoogled_repo/domain_regex.list" \
+ -f "$ungoogled_repo/domain_substitution.list" -c domainsubcache.tar.gz ./
+
+ mv test_fonts ./third_party/test_fonts
+
+ sed 's|//third_party/usb_ids/usb.ids|/usr/share/hwdata/usb.ids|g' \
+ -i services/device/public/cpp/usb/BUILD.gn
+
+ mkdir -p third_party/node/linux/node-linux-x64/bin
+ ln -s /usr/bin/node third_party/node/linux/node-linux-x64/bin/
+
+ # Remove bundled libraries for which we will use the system copies; this
+ # *should* do what the remove_bundled_libraries.py script does, with the
+ # added benefit of not having to list all the remaining libraries
+
+ local use_system="
+ ffmpeg
+ flac
+ fontconfig
+ freetype
+ harfbuzz-ng
+ libdrm
+ libevent
+ libjpeg
+ libwebp
+ libxml
+ libxslt
+ opus
+ re2
+ snappy
+ "
+
+ local _lib
+ for _lib in ${use_system}; do
+ for f in $(find "third_party/$_lib/chromium" "third_party/$_lib/google" -type f \( -name "*.gn" -or -name "*.gni" -or -name "*.isolate" \)); do
+ echo "removing $f to use system $_lib"
+ rm $f
+ done
+ done
+
+ python build/linux/unbundle/replace_gn_files.py \
+ --system-libraries ${use_system}
+ python third_party/libaddressinput/chromium/tools/update-strings.py
+}
+
+build () {
+ export CC=clang
+ export CXX=clang++
+ export LD=clang++
+ export AR=ar
+ export NM=nm
+
+ flags="
+custom_toolchain=\"//build/toolchain/linux/unbundle:default\"
+host_toolchain=\"//build/toolchain/linux/unbundle:default\"
+enable_nacl=false
+use_sysroot=false
+clang_use_chrome_plugins=false
+is_clang=true
+use_lld=false
+gold_path=\"/usr/bin/ld.gold\"
+use_custom_libcxx=false
+use_gold=false
+is_debug=false
+blink_symbol_level=0
+symbol_level=0
+icu_use_data_file=true
+use_allocator=\"none\"
+use_allocator_shim=false
+enable_widevine=true
+use_system_harfbuzz=false
+use_system_wayland_scanner=true
+use_cups=false
+use_gnome_keyring=false
+use_vaapi=true
+enable_js_type_check=true
+use_pulseaudio=true
+link_pulseaudio=true
+rtc_use_pipewire=true
+proprietary_codecs=false
+ffmpeg_branding=\"Chrome\"
+fatal_linker_warnings=false
+disable_fieldtrial_testing_config=true
+is_official_build=true
+is_cfi=false
+use_thin_lto=false
+use_cfi_icall=false
+chrome_pgo_phase=0
+ "
+
+ # Append ungoogled chromium flags to _flags array
+ flags="$flags
+ $(cat "ungoogled-chromium-$PKG_VER-1/flags.gn")
+ "
+
+ # Facilitate deterministic builds (taken from build/config/compiler/BUILD.gn)
+ CFLAGS="$CFLAGS -Wno-builtin-macro-redefined"
+ CXXFLAGS="$CXXFLAGS -Wno-builtin-macro-redefined"
+ CPPFLAGS="$CPPFLAGS -D__DATE__= -D__TIME__= -D__TIMESTAMP__="
+
+ # Do not warn about unknown warning options
+ CFLAGS="$CFLAGS -Wno-unknown-warning-option"
+ CXXFLAGS="$CXXFLAGS -Wno-unknown-warning-option"
+
+ python3 tools/gn/bootstrap/bootstrap.py -s -v --skip-generate-buildfiles
+
+ ./out/Release/gn gen out/Release --args="$flags"
+
+ ninja -C out/Release mksnapshot
+ ninja -C out/Release v8_context_snapshot_generator
+
+ ulimit -n 2048
+ ninja -C out/Release chrome chrome_sandbox chromedriver
+}
+
+package () {
+ install -Dm755 chromium-launcher.sh \
+ "$PKG_DEST"/usr/lib/chromium/chromium-launcher.sh
+
+ install -D out/Release/chrome "$PKG_DEST/usr/lib/chromium/chromium"
+ install -D out/Release/chromedriver "$PKG_DEST/usr/bin/chromedriver"
+ install -Dm4755 out/Release/chrome_sandbox "$PKG_DEST/usr/lib/chromium/chrome-sandbox"
+
+ install -Dm644 ../chromium-drirc-disable-10bpc-color-configs.conf \
+ "$PKG_DEST/usr/share/drirc.d/10-chromium.conf"
+
+ install -Dm644 chrome/installer/linux/common/desktop.template \
+ "$PKG_DEST/usr/share/applications/chromium.desktop"
+ install -Dm644 chrome/app/resources/manpage.1.in \
+ "$PKG_DEST/usr/share/man/man1/chromium.1"
+ sed -i \
+ -e 's/@@MENUNAME@@/Chromium/g' \
+ -e 's/@@PACKAGE@@/chromium/g' \
+ -e 's/@@USR_BIN_SYMLINK_NAME@@/chromium/g' \
+ "$PKG_DEST/usr/share/applications/chromium.desktop" \
+ "$PKG_DEST/usr/share/man/man1/chromium.1"
+
+ install -Dm644 chrome/installer/linux/common/chromium-browser/chromium-browser.appdata.xml \
+ "$PKG_DEST/usr/share/metainfo/chromium.appdata.xml"
+ sed -ni \
+ -e 's/chromium-browser\.desktop/chromium.desktop/' \
+ -e '/<update_contact>/d' \
+ -e '/<p>/N;/<p>\n.*\(We invite\|Chromium supports Vorbis\)/,/<\/p>/d' \
+ -e '/^<?xml/,$p' \
+ "$PKG_DEST/usr/share/metainfo/chromium.appdata.xml"
+
+ local toplevel_files="
+chrome_100_percent.pak
+chrome_200_percent.pak
+chrome_crashpad_handler
+resources.pak
+v8_context_snapshot.bin
+snapshot_blob.bin
+xdg-mime
+xdg-settings
+libEGL.so
+libGLESv2.so
+libvk_swiftshader.so
+vk_swiftshader_icd.json
+icudtl.dat
+libvulkan.so.1
+ "
+
+ mkdir -p "$PKG_DEST/usr/lib/chromium"
+ mkdir -p "$PKG_DEST/usr/lib/chromium/locales"
+ mkdir -p "$PKG_DEST/usr/lib/chromium/swiftshader"
+
+ for file in $toplevel_files; do
+ cp out/Release/$file "$PKG_DEST/usr/lib/chromium/"
+ done
+
+ for locale in out/Release/locales/* ; do
+ install -Dm644 $locale "$PKG_DEST/usr/lib/chromium/locales"
+ done
+ for shader in out/Release/swiftshader/*.so; do
+ install -Dm755 $shader "$PKG_DEST/usr/lib/chromium/swiftshader"
+ done
+
+ for size in 24 48 64 128 256; do
+ install -Dm644 "chrome/app/theme/chromium/product_logo_$size.png" \
+ "$PKG_DEST/usr/share/icons/hicolor/${size}x${size}/apps/chromium.png"
+ done
+
+ for size in 16 32; do
+ install -Dm644 "chrome/app/theme/default_100_percent/chromium/product_logo_$size.png" \
+ "$PKG_DEST/usr/share/icons/hicolor/${size}x${size}/apps/chromium.png"
+ done
+
+ install -Dm644 LICENSE "$PKG_DEST/usr/share/licenses/chromium/LICENSE"
+
+ mkdir -p "$PKG_DEST"/usr/bin
+ ln -sf /usr/lib/chromium/chromium-launcher.sh "$PKG_DEST"/usr/bin/chromium-browser
+ install -Dm644 chromium.conf \
+ "$PKG_DEST"/etc/chromium/chromium.conf
+
+ install -Dm644 chromium.desktop \
+ "$PKG_DEST"/usr/share/applications/chromium.desktop
+
+}
diff --git a/repo/apps/mpv.xibuild b/repo/apps/mpv.xibuild
new file mode 100644
index 0000000..6770c54
--- /dev/null
+++ b/repo/apps/mpv.xibuild
@@ -0,0 +1,33 @@
+#!/bin/sh
+
+NAME="mpv"
+DESC="Video player based on MPlayer/mplayer2"
+
+MAKEDEPS="make waf"
+DEPS="alsa-lib faac ffmpeg4 freetype2 lame aom libass libtheora libva libvdpau libxext libxinerama libxkbcommon libxrandr libxscrnsaver libxv libxvmc libxxf86dga lua mesa perl pulseaudio python-docutils python xvidcore zlib "
+
+PKG_VER=0.34.1
+SOURCE="https://github.com/mpv-player/mpv/archive/v$PKG_VER/mpv-$PKG_VER.tar.gz"
+
+prepare () {
+ ln -s /usr/bin/waf waf
+}
+
+build () {
+ python3 waf configure \
+ --prefix=/usr \
+ --bindir=/usr/bin \
+ --sysconfdir=/etc \
+ --disable-static \
+ --enable-alsa \
+ --enable-pulse \
+ --enable-libmpv-shared \
+ --enable-wayland \
+ --enable-lua \
+ --enable-test
+ python3 waf build
+}
+
+package () {
+ python3 waf install --destdir=$PKG_DEST
+}
diff --git a/repo/apps/pcmanfm.xibuild b/repo/apps/pcmanfm.xibuild
new file mode 100644
index 0000000..35c3d52
--- /dev/null
+++ b/repo/apps/pcmanfm.xibuild
@@ -0,0 +1,33 @@
+#!/bin/sh
+
+NAME="pcmanfm"
+DESC="Extremely fast and lightweight file manager"
+
+MAKEDEPS="make "
+DEPS="gtk3 libfm "
+
+PKG_VER=1.3.2
+SOURCE="https://downloads.sourceforge.net/pcmanfm/pcmanfm-$PKG_VER.tar.xz"
+
+prepare () {
+ # avoid errors building .po files with gettext-tiny
+ sed -e "s/^\(SUBDIRS =.*\)po\(.*\)$/\1\2/" -i Makefile.in
+ echo "SUBDIRS=src data" > Makefile.am
+ aclocal
+ autoreconf
+ automake --add-missing
+}
+
+build () {
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --with-gtk=3
+ make
+}
+
+package () {
+ make DESTDIR=$PKG_DEST install
+ sed -i 's|x-directory/normal|inode/directory|' \
+ "$PKG_DEST"/usr/share/applications/pcmanfm.desktop
+}
diff --git a/repo/apps/polybar.xibuild b/repo/apps/polybar.xibuild
new file mode 100644
index 0000000..16e07af
--- /dev/null
+++ b/repo/apps/polybar.xibuild
@@ -0,0 +1,44 @@
+#!/bin/sh
+
+NAME="polybar"
+DESC="fast and easy-to-use tool for creating status bars"
+
+MAKEDEPS="cmake "
+DEPS="alsa-lib sbase cairo fontconfig freetype2 jsoncpp curl libmpdclient pulseaudio libuv musl libxcb xcb-util-cursor xcb-util-wm "
+
+PKG_VER=3.6.1
+SOURCE="https://github.com/polybar/polybar/archive/$PKG_VER.tar.gz"
+
+xppver="044e69d05db7f89339bda1ccd1efe0263b01c8f6"
+i3ipcppver="86ddf7102c6903ae0cc543071e2d375403fc0727"
+
+ADDITIONAL="fix-version.patch
+https://github.com/polybar/xpp/archive/$xppver.tar.gz
+https://github.com/polybar/i3ipcpp/archive/$i3ipcppver.tar.gz
+"
+
+prepare () {
+ tar -xf $xppver.tar.gz
+ tar -xf $i3ipcppver.tar.gz
+
+ mkdir build
+ rm -rf lib/xpp
+ mv xpp-$xppver lib/xpp
+ rm -rf lib/i3ipcpp
+ mv i3ipcpp-$i3ipcpp lib/i3ipcpp
+
+ apply_patches
+}
+
+build () {
+ cmake -B build \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=/usr/lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DBUILD_STATIC_LIBS=OFF
+ cmake --build build
+}
+
+package () {
+ DESTDIR="$PKG_DEST" cmake --install build
+}
diff --git a/repo/devel/clang.xibuild b/repo/devel/clang.xibuild
index 8ee7c38..3b93ba3 100644
--- a/repo/devel/clang.xibuild
+++ b/repo/devel/clang.xibuild
@@ -3,14 +3,14 @@
MAKEDEPS="cmake llvm libxml2 ninja python python-markupsafe python-pygments"
DEPS="curl gcc libssh2 openssl"
-PKG_VER=13.0.1
+PKG_VER=13.0.0
SOURCE=https://github.com/llvm/llvm-project/releases/download/llvmorg-$PKG_VER/clang-$PKG_VER.src.tar.xz
DESC="Systems programming language focused on safety, speed and concurrency"
ADDITIONAL="
patches/30-Enable-stack-protector-by-default-for-Alpine-Linux.patch
patches/10-add-musl-triples.patch
- "
+"
prepare () {
apply_patches
diff --git a/repo/devel/compiler-rt.xibuild b/repo/devel/compiler-rt.xibuild
new file mode 100644
index 0000000..abff3dc
--- /dev/null
+++ b/repo/devel/compiler-rt.xibuild
@@ -0,0 +1,38 @@
+#!/bin/sh
+
+NAME="compiler-rt"
+DESC="LLVM compiler-rt runtime libraries"
+
+MAKEDEPS="cmake libexecinfo"
+DEPS="musl "
+
+PKG_VER=13.0.0
+SOURCE="https://github.com/llvm/llvm-project/releases/download/llvmorg-$PKG_VER/compiler-rt-$PKG_VER.src.tar.xz"
+ADDITIONAL="link-execinfo.patch "
+
+prepare () {
+ apply_patches
+}
+
+build () {
+ cmake -B build \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=/usr/lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DBUILD_STATIC_LIBS=OFF \
+ -DCMAKE_C_COMPILER=clang \
+ -DCMAKE_CXX_COMPILER=clang++ \
+ -DCMAKE_BUILD_TYPE=MinSizeRel \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCOMPILER_RT_INCLUDE_TESTS=OFF \
+ -DCOMPILER_RT_BUILD_SANITIZERS=ON \
+ -DCOMPILER_RT_BUILD_XRAY=ON \
+ -DCOMPILER_RT_INSTALL_PATH="/usr/lib/clang/$PKG_VER" \
+ -DLLVM_EXTERNAL_LIT="/usr/bin/lit" \
+
+ cmake --build build
+}
+
+package () {
+ DESTDIR="$PKG_DEST" cmake --install build
+}
diff --git a/repo/devel/libexecinfo.xibuild b/repo/devel/libexecinfo.xibuild
new file mode 100644
index 0000000..67e1002
--- /dev/null
+++ b/repo/devel/libexecinfo.xibuild
@@ -0,0 +1,32 @@
+#!/bin/sh
+
+NAME="libexecinfo"
+DESC="A quick-n-dirty BSD licensed clone of the GNU libc backtrace facility."
+
+MAKEDEPS="make "
+DEPS="musl "
+
+PKG_VER=1.1
+SOURCE="http://distcache.freebsd.org/local-distfiles/itetcu/libexecinfo-$PKG_VER.tar.bz2"
+ADDITIONAL="30-linux-makefile.patch 20-define-gnu-source.patch 10-execinfo.patch "
+
+prepare () {
+ apply_patches
+}
+
+build () {
+ export CFLAGS="${CFLAGS} -fno-omit-frame-pointer"
+ make PREFIX=/usr
+}
+
+package () {
+ install -D -m755 execinfo.h \
+ "$PKG_DEST"/usr/include/execinfo.h
+ install -D -m755 stacktraverse.h \
+ "$PKG_DEST"/usr/include/stacktraverse.h
+ install -D -m755 libexecinfo.so.1 \
+ "$PKG_DEST"/usr/lib/libexecinfo.so.1
+ ln -s /usr/lib/libexecinfo.so.1 \
+ "$PKG_DEST"/usr/lib/libexecinfo.so
+
+}
diff --git a/repo/devel/lld.xibuild b/repo/devel/lld.xibuild
new file mode 100644
index 0000000..c2dff7f
--- /dev/null
+++ b/repo/devel/lld.xibuild
@@ -0,0 +1,29 @@
+#!/bin/sh
+
+NAME="lld"
+DESC="The LLVM Linker"
+
+MAKEDEPS="cmake llvm-libunwind"
+DEPS="musl llvm "
+
+PKG_VER=13.0.0
+SOURCE="https://github.com/llvm/llvm-project/releases/download/llvmorg-$PKG_VER/lld-$PKG_VER.src.tar.xz"
+
+build () {
+ cmake -B build \
+ -DCMAKE_BUILD_TYPE=MinSizeRel \
+ -DCMAKE_VERBOSE_MAKEFILE=OFF \
+ -DCMAKE_C_FLAGS_MINSIZEREL_INIT="$CFLAGS" \
+ -DCMAKE_CXX_FLAGS_MINSIZEREL_INIT="$CXXFLAGS" \
+ -DCMAKE_EXE_LINKER_FLAGS_MINSIZEREL_INIT="$LDFLAGS -Wl,-z,stack-size=2097152" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_SKIP_INSTALL_RPATH=ON \
+ -DLLVM_INCLUDE_TESTS=ON \
+ -DLLVM_EXTERNAL_LIT=/usr/bin/lit
+ cmake --build build
+}
+
+package () {
+ DESTDIR="$PKG_DEST" cmake --install build
+ install -Dm 644 docs/ld.lld.1 $PKG_DEST/usr/share/man/man1/
+}
diff --git a/repo/devel/llvm-libunwind.xibuild b/repo/devel/llvm-libunwind.xibuild
new file mode 100644
index 0000000..9c61c31
--- /dev/null
+++ b/repo/devel/llvm-libunwind.xibuild
@@ -0,0 +1,48 @@
+#!/bin/sh
+
+NAME="llvm-libunwind"
+DESC="LLVM version of libunwind library"
+
+MAKEDEPS="cmake "
+DEPS="musl "
+
+PKG_VER=13.0.0
+SOURCE="https://github.com/llvm/llvm-project/releases/download/llvmorg-$PKG_VER/libunwind-$PKG_VER.src.tar.xz"
+
+ADDITIONAL="
+ https://github.com/llvm/llvm-project/releases/download/llvmorg-$PKG_VER/llvm-$PKG_VER.src.tar.xz
+ https://github.com/llvm/llvm-project/releases/download/llvmorg-$PKG_VER/libcxx-$PKG_VER.src.tar.xz
+ libunwind-link-libssp.patch
+ libcxx-musl.patch
+"
+
+prepare () {
+ tar xvf libunwind-$PKG_VER.src.tar.xz
+ tar xvf llvm-$PKG_VER.src.tar.xz
+ tar xvf libcxx-$PKG_VER.src.tar.xz
+ mv libunwind-$PKG_VER.src libunwind
+ mv llvm-$PKG_VER.src llvm
+ mv libcxx-$PKG_VER.src libcxx
+
+ apply_patches
+}
+
+build () {
+ cmake -B build -G Ninja -S libunwind \
+ -DCMAKE_BUILD_TYPE=MinSizeRel \
+ -DCMAKE_C_FLAGS_MINSIZEREL_INIT="$CFLAGS" \
+ -DCMAKE_CXX_FLAGS_MINSIZEREL_INIT="$CXXFLAGS" \
+ -DCMAKE_EXE_LINKER_FLAGS_MINSIZEREL_INIT="$LDFLAGS" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DLIBUNWIND_HAS_NODEFAULTLIBS_FLAG=OFF \
+ -DLIBUNWIND_STANDALONE_BUILD=ON
+ cmake --build build
+}
+
+package () {
+ DESTDIR="$PKG_DEST" cmake --install build
+ mkdir -p "$PKG_DEST"/usr/include/mach-o
+ cp libunwind/include/*.h "$PKG_DEST"/usr/include/
+ cp libunwind/include/mach-o/*.h "$PKG_DEST"/usr/include/mach-o/
+
+}
diff --git a/repo/devel/waf.xibuild b/repo/devel/waf.xibuild
new file mode 100644
index 0000000..a479282
--- /dev/null
+++ b/repo/devel/waf.xibuild
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+NAME="waf"
+DESC="The meta build system"
+
+MAKEDEPS=""
+DEPS="python "
+
+PKG_VER=2.0.22
+SOURCE="https://waf.io/waf-$PKG_VER"
+
+package () {
+ install -Dm755 waf-$PKG_VER "$PKG_DEST"/usr/bin/waf
+}
diff --git a/repo/media/aom.xibuild b/repo/media/aom.xibuild
new file mode 100644
index 0000000..66aaa4b
--- /dev/null
+++ b/repo/media/aom.xibuild
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+NAME="aom"
+DESC="Alliance for Open Media (AOM) AV1 codec SDK"
+
+MAKEDEPS="cmake "
+DEPS="musl "
+
+PKG_VER=3.3.0
+SOURCE="https://aomedia.googlesource.com/aom/+archive/v$PKG_VER.tar.gz"
+ADDITIONAL="fix-stack-size-e53da0b.patch "
+
+build () {
+ cmake -B build -G Ninja \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=/usr/lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DBUILD_STATIC_LIBS=OFF
+ cmake --build build
+}
+
+package () {
+ DESTDIR="$PKG_DEST" cmake --install build
+}
diff --git a/repo/media/dav1d.xibuild b/repo/media/dav1d.xibuild
new file mode 100644
index 0000000..a25471b
--- /dev/null
+++ b/repo/media/dav1d.xibuild
@@ -0,0 +1,30 @@
+#!/bin/sh
+
+NAME="dav1d"
+DESC="small and fast AV1 Decoder"
+
+MAKEDEPS="meson ninja nasm"
+DEPS="musl "
+
+PKG_VER=1.0.0
+SOURCE="https://code.videolan.org/videolan/dav1d/-/archive/$PKG_VER/dav1d-$PKG_VER.tar.bz2"
+ADDITIONAL="fix-asmcheck.patch "
+
+prepare () {
+ apply_patches
+}
+
+build () {
+ mkdir build &&
+ cd build &&
+ meson --prefix=/usr \
+ -Denable_asm=true \
+ -Dfuzzing_engine=none \
+ .. &&
+ ninja
+}
+
+package () {
+ DESTDIR=$PKG_DEST ninja install
+ mv $PKG_DEST/usr/lib64 $PKG_DEST/usr/lib
+}
diff --git a/repo/media/ffmpeg.xibuild b/repo/media/ffmpeg.xibuild
new file mode 100644
index 0000000..6d7f960
--- /dev/null
+++ b/repo/media/ffmpeg.xibuild
@@ -0,0 +1,63 @@
+#!/bin/sh
+
+NAME="ffmpeg"
+DESC="Complete and free Internet live audio and video broadcasting solution for Linux/Unix"
+
+MAKEDEPS="make "
+DEPS="alsa-lib aom gnutls libass bzip2 dav1d libdrm pulseaudio librist libsrt libtheora libva libvorbis libvpx libwebp libx11 libxcb musl opus sdl2 v4l-utils vidstab x264 x265 xvidcore zlib lame soxr"
+
+PKG_VER=5.0.1
+SOURCE="https://ffmpeg.org/releases/ffmpeg-$PKG_VER.tar.xz"
+ADDITIONAL="
+0001-ffbuild-libversion.sh-add-shebang.patch
+0001-libavutil-clean-up-unused-FF_SYMVER-macro.patch
+"
+
+prepare () {
+ apply_patches
+}
+
+build () {
+ ./configure \
+ --prefix=/usr \
+ --enable-avfilter \
+ --enable-gnutls \
+ --enable-gpl \
+ --enable-libass \
+ --enable-libmp3lame \
+ --enable-libpulse \
+ --enable-libvorbis \
+ --enable-libvpx \
+ --enable-libxvid \
+ --enable-libx264 \
+ --enable-libx265 \
+ --enable-libtheora \
+ --enable-libv4l2 \
+ --enable-libdav1d \
+ --enable-lto \
+ --enable-postproc \
+ --enable-pic \
+ --enable-pthreads \
+ --enable-shared \
+ --enable-libxcb \
+ --enable-librist \
+ --enable-libsrt \
+ --enable-libvidstab \
+ --disable-stripping \
+ --disable-static \
+ --disable-librtmp \
+ --enable-libaom \
+ --enable-libopus \
+ --enable-libsoxr \
+ --enable-libwebp \
+ --enable-vaapi \
+ --enable-vdpau \
+ --enable-libdrm
+
+
+ make
+}
+
+package () {
+ make DESTDIR=$PKG_DEST install
+}
diff --git a/repo/media/ffmpeg4.xibuild b/repo/media/ffmpeg4.xibuild
new file mode 100644
index 0000000..f17b0ef
--- /dev/null
+++ b/repo/media/ffmpeg4.xibuild
@@ -0,0 +1,64 @@
+#!/bin/sh
+
+NAME="ffmpeg4"
+DESC="Complete and free Internet live audio and video broadcasting solution for Linux/Unix"
+
+MAKEDEPS="make "
+DEPS="alsa-lib aom gnutls libass bzip2 dav1d libdrm pulseaudio librist libsrt libtheora libva libvorbis libvpx libwebp libx11 libxcb musl opus sdl2 v4l-utils vidstab x264 x265 xvidcore zlib lame soxr"
+
+PKG_VER=4.4.1
+SOURCE="https://ffmpeg.org/releases/ffmpeg-$PKG_VER.tar.xz"
+ADDITIONAL="
+0001-ffbuild-libversion.sh-add-shebang.patch
+0001-libavutil-clean-up-unused-FF_SYMVER-macro.patch
+"
+
+prepare () {
+ apply_patches
+}
+
+build () {
+ ./configure \
+ --prefix=/usr \
+ --enable-avresample \
+ --enable-avfilter \
+ --enable-gnutls \
+ --enable-gpl \
+ --enable-libass \
+ --enable-libmp3lame \
+ --enable-libpulse \
+ --enable-libvorbis \
+ --enable-libvpx \
+ --enable-libxvid \
+ --enable-libx264 \
+ --enable-libx265 \
+ --enable-libtheora \
+ --enable-libv4l2 \
+ --enable-libdav1d \
+ --enable-lto \
+ --enable-postproc \
+ --enable-pic \
+ --enable-pthreads \
+ --enable-shared \
+ --enable-libxcb \
+ --enable-libsrt \
+ --enable-libvidstab \
+ --disable-stripping \
+ --disable-static \
+ --disable-librtmp \
+ --enable-libaom \
+ --enable-libopus \
+ --enable-libsoxr \
+ --enable-libwebp \
+ --enable-vaapi \
+ --enable-vdpau \
+ --enable-libdrm
+
+ make
+}
+
+package () {
+ make DESTDIR=$PKG_DEST install
+ rm -rf $PKG_DEST/usr/bin
+ rm -rf $PKG_DEST/usr/share
+}
diff --git a/repo/media/lame.xibuild b/repo/media/lame.xibuild
new file mode 100644
index 0000000..6c2e2dc
--- /dev/null
+++ b/repo/media/lame.xibuild
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+NAME="lame"
+DESC="An MP3 encoder and graphical frame analyzer"
+
+MAKEDEPS="make nasm"
+DEPS="musl "
+
+PKG_VER=3.100
+SOURCE="https://downloads.sourceforge.net/project/lame/lame/$PKG_VER/lame-$PKG_VER.tar.gz"
+
+build () {
+ ./configure \
+ --prefix=/usr
+ --bindir=/usr/bin \
+ --sysconfdir=/etc \
+ --disable-static \
+ --disable-mp3x \
+ --enable-nasm \
+ --with-pic
+ make
+}
+
+package () {
+ make DESTDIR=$PKG_DEST install
+}
diff --git a/repo/media/libass.xibuild b/repo/media/libass.xibuild
new file mode 100644
index 0000000..60e3e04
--- /dev/null
+++ b/repo/media/libass.xibuild
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+NAME="libass"
+DESC="Portable library for SSA/ASS subtitle rendering"
+
+MAKEDEPS="make "
+DEPS="fontconfig fribidi freetype2 harfbuzz "
+
+PKG_VER=0.15.2
+SOURCE="https://github.com/libass/libass/releases/download/$PKG_VER/libass-$PKG_VER.tar.xz"
+
+build () {
+ ./configure \
+ --prefix=/usr
+ --bindir=/usr/bin \
+ --sysconfdir=/etc \
+ --disable-static
+ make
+}
+
+package () {
+ make DESTDIR=$PKG_DEST install
+}
diff --git a/repo/media/librist.xibuild b/repo/media/librist.xibuild
new file mode 100644
index 0000000..a51c3fa
--- /dev/null
+++ b/repo/media/librist.xibuild
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+NAME="librist"
+DESC="Reliable Internet Stream Transport (RIST)"
+
+MAKEDEPS="meson ninja "
+DEPS="linux-headers jsoncpp musl "
+
+PKG_VER=0.2.6
+SOURCE="https://code.videolan.org/rist/librist/-/archive/v$PKG_VER/librist-v$PKG_VER.tar.gz"
+
+build () {
+ mkdir build &&
+ cd build &&
+ meson --prefix=/usr \
+ .. &&
+ ninja
+}
+
+package () {
+ DESTDIR=$PKG_DEST ninja install
+}
diff --git a/repo/media/libsrt.xibuild b/repo/media/libsrt.xibuild
new file mode 100644
index 0000000..3d79326
--- /dev/null
+++ b/repo/media/libsrt.xibuild
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+NAME="libsrt"
+DESC="Secure Reliable Transport (SRT)"
+
+MAKEDEPS="cmake "
+DEPS="openssl musl"
+
+PKG_VER=1.4.4
+SOURCE="https://github.com/Haivision/srt/archive/v$PKG_VER.tar.gz"
+ADDITIONAL="fix-cmake.patch "
+
+prepare () {
+ apply_patches
+}
+
+build () {
+ cmake -B build \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=/usr/lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DBUILD_STATIC_LIBS=OFF
+ cmake --build build
+}
+
+package () {
+ DESTDIR="$PKG_DEST" cmake --install build
+}
diff --git a/repo/media/mpc-mpd.xibuild b/repo/media/mpc-mpd.xibuild
new file mode 100644
index 0000000..2d6d5f3
--- /dev/null
+++ b/repo/media/mpc-mpd.xibuild
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+NAME="mpc-mpd"
+DESC="Minimalist command line interface to MPD"
+
+MAKEDEPS="meson ninja rsync"
+DEPS="musl libmpdclient mpd"
+
+PKG_VER=0.34
+SOURCE="https://www.musicpd.org/download/mpc/${PKG_VER%.*}/mpc-$PKG_VER.tar.xz"
+
+build () {
+ cd build
+ meson --prefix=/usr \
+ .. &&
+ ninja
+}
+
+package () {
+ DESTDIR=$PKG_DEST ninja install
+}
diff --git a/repo/media/mpd.xibuild b/repo/media/mpd.xibuild
index 0907e1e..afedb54 100644
--- a/repo/media/mpd.xibuild
+++ b/repo/media/mpd.xibuild
@@ -1,22 +1,48 @@
#!/bin/sh
NAME="mpd"
-DESC="Minimalist command line interface to MPD"
+DESC="Music daemon that plays MP3, FLAC, Ogg Vorbis files and Audio CDs"
-MAKEDEPS="meson ninja "
-DEPS="musl libmpdclient "
+MAKEDEPS="meson ninja boost"
+DEPS="alsa-lib sbase expat faad2 flac fmt icu lame libao bzip2 libid3tag libmad libogg pulseaudio libsamplerate libmpdclient libvorbis musl opus pipewire soxr wavpack zlib sqlite3 ffmpeg4"
-PKG_VER=0.34
-SOURCE="https://www.musicpd.org/download/mpc/${PKG_VER%.*}/mpc-$PKG_VER.tar.xz"
+PKG_VER=0.23.6
+SOURCE="https://www.musicpd.org/download/mpd/${PKG_VER%.*}/mpd-$PKG_VER.tar.xz"
+ADDITIONAL="libcdio-paa-version.patch libcdio-paranoia-version.patch mpd.confd mpd.initd"
+
+prepare () {
+ apply_patches
+}
build () {
- mkdir build &&
- cd build &&
+ cd build
meson --prefix=/usr \
- .. &&
+ -Dopus=enabled \
+ -Ddocumentation=enabled \
+ -Dlibmpdclient=enabled \
+ -Dpipewire=enabled \
+ -Dwavpack=enabled \
+ -Dffmpeg=enabled \
+ .. &&
+
ninja
}
package () {
DESTDIR=$PKG_DEST ninja install
+ cd ..
+ install -d $PKG_DEST/etc
+ sed -e 's:\#user.*:user\t\t"mpd":' \
+ -e 's:\#log_file.*:log_file\t\t"syslog":' \
+ doc/mpdconf.example > $PKG_DEST/etc/mpd.conf
+ install -m755 -D mpd.initd \
+ "$PKG_DEST"/etc/init.d/mpd
+ install -m644 -D mpd.confd \
+ "$PKG_DEST"/etc/conf.d/mpd
+ install -d -m775 \
+ "$PKG_DEST"/var/run/mpd \
+ "$PKG_DEST"/var/log/mpd \
+ "$PKG_DEST"/var/lib/mpd \
+ "$PKG_DEST"/var/lib/mpd/playlists \
+ "$PKG_DEST"/var/lib/mpd/music
}
diff --git a/repo/media/soxr.xibuild b/repo/media/soxr.xibuild
new file mode 100644
index 0000000..48b1e3b
--- /dev/null
+++ b/repo/media/soxr.xibuild
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+NAME="soxr"
+DESC="High quality, one-dimensional sample-rate conversion library"
+
+MAKEDEPS="cmake "
+DEPS="musl "
+
+PKG_VER=0.1.3
+SOURCE="https://sourceforge.net/projects/soxr/files/soxr-$PKG_VER-Source.tar.xz/download"
+
+build () {
+ cmake -B build -G Ninja \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=/usr/lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DBUILD_STATIC_LIBS=OFF
+ cmake --build build
+}
+
+package () {
+ DESTDIR="$PKG_DEST" cmake --install build
+}
diff --git a/repo/media/v4l-utils.xibuild b/repo/media/v4l-utils.xibuild
new file mode 100644
index 0000000..bd40b23
--- /dev/null
+++ b/repo/media/v4l-utils.xibuild
@@ -0,0 +1,29 @@
+#!/bin/sh
+
+NAME="v4l-utils"
+DESC="Userspace tools and conversion library for Video 4 Linux"
+
+MAKEDEPS="make "
+DEPS="alsa-lib libjpeg-turbo argp-standalone eudev "
+
+PKG_VER=1.22.1
+SOURCE="https://linuxtv.org/downloads/v4l-utils/v4l-utils-$PKG_VER.tar.bz2"
+ADDITIONAL="fix_parse_next_subopt.patch types.patch "
+
+prepare () {
+ apply_patches
+}
+
+build () {
+ ./configure \
+ --prefix=/usr
+ --bindir=/usr/bin \
+ --sysconfdir=/etc \
+ --disable-static \
+ --enable-libdvbv5
+ make
+}
+
+package () {
+ make DESTDIR=$PKG_DEST install
+}
diff --git a/repo/media/vidstab.xibuild b/repo/media/vidstab.xibuild
new file mode 100644
index 0000000..cd0e5cf
--- /dev/null
+++ b/repo/media/vidstab.xibuild
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+NAME="vidstab"
+DESC="Video stabilization library"
+
+MAKEDEPS="cmake "
+DEPS="musl "
+
+PKG_VER=1.1.0
+SOURCE="https://github.com/georgmartius/vid.stab/archive/v$PKG_VER/vid.stab-v$PKG_VER.tar.gz"
+
+build () {
+ cmake -B build \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=/usr/lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DBUILD_STATIC_LIBS=OFF
+ cmake --build build
+}
+
+package () {
+ DESTDIR="$PKG_DEST" cmake --install build
+}
diff --git a/repo/media/x264.xibuild b/repo/media/x264.xibuild
new file mode 100644
index 0000000..5c1d375
--- /dev/null
+++ b/repo/media/x264.xibuild
@@ -0,0 +1,35 @@
+#!/bin/sh
+
+NAME="x264"
+DESC="Free library for encoding H264/AVC video streams"
+
+MAKEDEPS="make libx11 perl nasm sbase bash"
+DEPS="musl "
+
+PKG_VER=0.164.r3081.19856cc
+gitrev=master
+SOURCE="https://code.videolan.org/videolan/x264.git"
+BRANCH=19856cc41ad11e434549fb3cc6a019e645ce1efe
+
+ADDITIONAL="
+ oclobj.h
+"
+
+prepare () {
+ echo '' > ./tools/cltostr.sh
+ mv oclobj.h common/oclobj.h
+}
+
+build () {
+ ./configure \
+ --prefix=/usr \
+ --enable-shared \
+ --enable-pic \
+ --enable-lto \
+ --disable-avs
+ make
+}
+
+package () {
+ make DESTDIR=$PKG_DEST bindir=/usr/bin libdir=/usr/lib includedir=/usr/include install-lib-shared install-cli
+}
diff --git a/repo/media/x265.xibuild b/repo/media/x265.xibuild
new file mode 100644
index 0000000..69bd3e2
--- /dev/null
+++ b/repo/media/x265.xibuild
@@ -0,0 +1,53 @@
+#!/bin/sh
+
+NAME="x265"
+DESC="Open Source H265/HEVC video encoder"
+
+MAKEDEPS="cmake "
+DEPS="musl "
+
+PKG_VER=3.5
+SOURCE="https://bitbucket.org/multicoreware/x265_git/downloads/x265_$PKG_VER.tar.gz"
+
+build () {
+ # CMAKE_BUILD_TYPE - Don't change to None! This is a video encoder,
+ # performance is the most important.
+ cmake -B build-12 -S source -G Ninja \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_VERBOSE_MAKEFILE=ON \
+ -DHIGH_BIT_DEPTH=TRUE \
+ -DMAIN12=TRUE \
+ -DEXPORT_C_API=FALSE \
+ -DENABLE_CLI=FALSE \
+ -DENABLE_SHARED=FALSE
+ cmake --build build-12
+
+ cmake -B build-10 -S source -G Ninja \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_VERBOSE_MAKEFILE=ON \
+ -DHIGH_BIT_DEPTH=TRUE \
+ -DEXPORT_C_API=FALSE \
+ -DENABLE_CLI=FALSE \
+ -DENABLE_SHARED=FALSE
+ cmake --build build-10
+
+ cmake -B build -S source -G Ninja \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_VERBOSE_MAKEFILE=ON \
+ -DEXTRA_LIB='x265_main10.a;x265_main12.a' \
+ -DEXTRA_LINK_FLAGS='-L.' \
+ -DLINKED_10BIT=TRUE \
+ -DLINKED_12BIT=TRUE
+ ln -s ../build-10/libx265.a build/libx265_main10.a
+ ln -s ../build-12/libx265.a build/libx265_main12.a
+ cmake --build build
+
+}
+
+package () {
+ DESTDIR="$PKG_DEST" cmake --install build
+}
+
diff --git a/repo/media/xvidcore.xibuild b/repo/media/xvidcore.xibuild
new file mode 100644
index 0000000..6ffce5a
--- /dev/null
+++ b/repo/media/xvidcore.xibuild
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+NAME="xvidcore"
+DESC="XviD is an open source MPEG-4 video codec"
+
+MAKEDEPS="make "
+DEPS="musl "
+
+PKG_VER=1.3.7
+SOURCE="https://downloads.xvid.com/downloads/xvidcore-$PKG_VER.tar.bz2"
+
+build () {
+ cd build/generic
+ ./configure \
+ --prefix=/usr \
+ --bindir=/usr/bin \
+ --sysconfdir=/etc \
+ --disable-assembly
+ make
+}
+
+package () {
+ make DESTDIR=$PKG_DEST install
+}
diff --git a/repo/meta/base.xibuild b/repo/meta/base.xibuild
index 7b2b6c2..a9714a0 100644
--- a/repo/meta/base.xibuild
+++ b/repo/meta/base.xibuild
@@ -1,5 +1,5 @@
#!/bin/sh
-DEPS="bash bzip2 sbase findutils iana-etc file gawk gettext musl grep gzip iproute2 iputils xipkg pciutils procps-ng psmisc sed shadow tar util-linux xz linux-headers sysconfigs inetutils mkinitramfs genfstab eudev openrc kbd sysklogd"
+DEPS="bash bzip2 sbase findutils iana-etc file gawk gettext musl grep gzip iproute2 iputils xipkg pciutils procps-ng psmisc sed shadow tar util-linux xz linux-headers sysconfigs inetutils mkinitramfs genfstab eudev openrc kbd sysklogd openntpd tzdata"
MAKEDEPS="grep python"
DESC="The base system to be installed"
diff --git a/repo/system/c-ares.xibuild b/repo/system/c-ares.xibuild
new file mode 100644
index 0000000..6cf3e3f
--- /dev/null
+++ b/repo/system/c-ares.xibuild
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+NAME="c-ares"
+DESC="An asynchronously DNS/names resolver library"
+
+MAKEDEPS="make "
+DEPS="musl "
+
+PKG_VER=1.18.1
+SOURCE="https://c-ares.haxx.se/download/c-ares-$PKG_VER.tar.gz"
+
+build () {
+ ./configure \
+ --prefix=/usr \
+ --bindir=/usr/bin \
+ --sysconfdir=/etc \
+ --disable-static
+ make
+}
+
+package () {
+ make DESTDIR=$PKG_DEST install
+}
diff --git a/repo/system/glew.xibuild b/repo/system/glew.xibuild
new file mode 100644
index 0000000..7ad27fe
--- /dev/null
+++ b/repo/system/glew.xibuild
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+NAME="glew"
+DESC="A cross-platform C/C++ extension loading library"
+
+MAKEDEPS="make "
+DEPS="libxmu libxi mesa glu"
+
+PKG_VER=2.2.0
+SOURCE="https://downloads.sourceforge.net/glew/glew-$PKG_VER.tgz"
+ADDITIONAL="glew.patch "
+
+build () {
+ make PREFIX=/usr
+}
+
+package () {
+ mkdir -p $PKG_DEST/usr/lib64
+ make PREFIX=/usr DESTDIR=$PKG_DEST install
+}
diff --git a/repo/system/glib.xibuild b/repo/system/glib.xibuild
index 3b7a4c4..870e600 100644
--- a/repo/system/glib.xibuild
+++ b/repo/system/glib.xibuild
@@ -3,9 +3,17 @@
MAKEDEPS="meson ninja docbook-xsl docbook-dtd"
DEPS="pcre libffi zlib musl libxslt gdbm"
-PKG_VER=2.70.3
+PKG_VER=2.72.1
SOURCE=https://download.gnome.org/sources/glib/$(echo $PKG_VER | cut -d. -f-2)/glib-$PKG_VER.tar.xz
DESC="Low level core library"
+ADDITIONAL="
+0001-gquark-fix-initialization-with-c-constructors.patch
+deprecated-no-warn.patch
+musl-libintl.patch"
+
+prepare () {
+ apply_patches
+}
build () {
mkdir build &&
diff --git a/repo/system/glm.xibuild b/repo/system/glm.xibuild
new file mode 100644
index 0000000..cd918c3
--- /dev/null
+++ b/repo/system/glm.xibuild
@@ -0,0 +1,35 @@
+#!/bin/sh
+
+NAME="glm"
+DESC="C++ mathematics library for graphics programming"
+
+MAKEDEPS="cmake "
+DEPS="musl "
+
+PKG_VER=0.9.9.8
+SOURCE="https://github.com/g-truc/glm/archive/refs/tags/$PKG_VER/glm-$PKG_VER.tar.gz"
+ADDITIONAL="
+fix-endian-test.patch
+glm.pc
+"
+
+build () {
+ cmake -B build -G Ninja \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=/usr/lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DBUILD_STATIC_LIBS=OFF
+ cmake --build build
+}
+
+package () {
+
+ mkdir -p $PKG_DEST/usr/include/
+ cp -r glm $PKG_DEST/usr/include/
+
+ mkdir -p $PKG_DEST/usr/share/doc/
+ cp -r doc $PKG_DEST/usr/share/doc/glm
+
+ mkdir -p $PKG_DEST/usr/lib/pkgconfig
+ cp glm.pc $PKG_DEST/usr/lib/pkgconfig/
+}
diff --git a/repo/system/glu.xibuild b/repo/system/glu.xibuild
new file mode 100644
index 0000000..54249a7
--- /dev/null
+++ b/repo/system/glu.xibuild
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+NAME="glu"
+DESC="Mesa OpenGL Utility library"
+
+MAKEDEPS="meson ninja "
+DEPS="mesa opengl"
+
+PKG_VER=9.0.2
+SOURCE="https://mesa.freedesktop.org/archive/glu/glu-$PKG_VER.tar.xz"
+
+build () {
+ mkdir build &&
+ cd build &&
+ meson --prefix=/usr \
+ -D default_library=shared \
+ -D gl_provider=osmesa \
+ .. &&
+ ninja
+}
+
+package () {
+ DESTDIR=$PKG_DEST ninja install
+}
diff --git a/repo/system/gobject-introspection.xibuild b/repo/system/gobject-introspection.xibuild
index 4202c8c..5d5a117 100644
--- a/repo/system/gobject-introspection.xibuild
+++ b/repo/system/gobject-introspection.xibuild
@@ -6,11 +6,16 @@ DEPS="python-mako python-markdown glib"
PKG_VER=1.72.0
SOURCE=https://download.gnome.org/sources/gobject-introspection/$(echo $PKG_VER | cut -d. -f-2)/gobject-introspection-$PKG_VER.tar.xz
+ADDITIONAL="musl-time64.patch"
DESC="Introspection system for GObject-based libraries"
+prepare () {
+ apply_patches
+}
+
build () {
mkdir build &&
- cd build &&
+ cd build
meson --prefix=/usr --buildtype=release .. &&
ninja
diff --git a/repo/system/imlib2.xibuild b/repo/system/imlib2.xibuild
index 5e734a5..9ed5b15 100644
--- a/repo/system/imlib2.xibuild
+++ b/repo/system/imlib2.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
MAKEDEPS="make"
-DEPS="libtiff giflib bzip2 freetype2 libxext libpng libid3tag libjpeg-turbo libwebp libheif librsvg xz"
+DEPS="tiff giflib bzip2 freetype2 libxext libpng libid3tag libjpeg-turbo libwebp libheif librsvg xz"
PKG_VER=1.8.0
SOURCE=https://downloads.sourceforge.net/enlightenment/imlib2-$PKG_VER.tar.xz
diff --git a/repo/system/libexif.xibuild b/repo/system/libexif.xibuild
new file mode 100644
index 0000000..129c73a
--- /dev/null
+++ b/repo/system/libexif.xibuild
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+NAME="libexif"
+DESC="library to parse an EXIF file and read the data from those tags"
+
+MAKEDEPS="make "
+DEPS="musl "
+
+PKG_VER=0.6.24
+SOURCE="https://github.com/libexif/libexif/releases/download/v$PKG_VER/libexif-$PKG_VER.tar.bz2"
+
+build () {
+ ./configure \
+ --prefix=/usr \
+ --bindir=/usr/bin \
+ --sysconfdir=/etc \
+ --disable-static
+ make
+}
+
+package () {
+ make DESTDIR=$PKG_DEST install
+}
diff --git a/repo/system/libfm-extra.xibuild b/repo/system/libfm-extra.xibuild
new file mode 100644
index 0000000..7cb00fa
--- /dev/null
+++ b/repo/system/libfm-extra.xibuild
@@ -0,0 +1,31 @@
+#!/bin/sh
+
+NAME="libfm-extra"
+DESC="Library for file management (Extra)"
+
+MAKEDEPS="make libtool intltool autoconf automake gtk3"
+DEPS="libexif"
+
+PKG_VER=1.3.2
+SOURCE="https://github.com/lxde/libfm/archive/$PKG_VER.tar.gz"
+
+prepare () {
+ ./autogen.sh
+}
+
+build () {
+ ./configure \
+ --prefix=/usr \
+ --bindir=/usr/bin \
+ --sysconfdir=/etc \
+ --disable-static \
+ --with-gtk=3 \
+ --with-extra-only \
+ --with-gnu-ld
+ sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+ make
+}
+
+package () {
+ make DESTDIR=$PKG_DEST install
+}
diff --git a/repo/system/libfm.xibuild b/repo/system/libfm.xibuild
new file mode 100644
index 0000000..21661e5
--- /dev/null
+++ b/repo/system/libfm.xibuild
@@ -0,0 +1,31 @@
+#!/bin/sh
+
+NAME="libfm"
+DESC="Library for file management"
+
+MAKEDEPS="make libtool intltool autoconf automake gtk3"
+DEPS="libexif menu-cache"
+
+PKG_VER=1.3.2
+SOURCE="https://github.com/lxde/libfm/archive/$PKG_VER.tar.gz"
+
+prepare () {
+ ./autogen.sh
+}
+
+build () {
+ ./configure \
+ --prefix=/usr \
+ --bindir=/usr/bin \
+ --sysconfdir=/etc \
+ --disable-static \
+ --with-gtk=3 \
+ --with-extra \
+ --with-gnu-ld
+ sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+ make
+}
+
+package () {
+ make DESTDIR=$PKG_DEST install
+}
diff --git a/repo/system/libpng.xibuild b/repo/system/libpng.xibuild
index bd39b4c..e40077d 100644
--- a/repo/system/libpng.xibuild
+++ b/repo/system/libpng.xibuild
@@ -6,7 +6,11 @@ DEPS=""
PKG_VER=1.6.37
SOURCE=https://downloads.sourceforge.net/libpng/libpng-$PKG_VER.tar.xz
DESC="A collection of routines used to create PNG images"
+ADDITIONAL="libpng-1.6.37-apng.patch"
+prepare () {
+ apply_patches
+}
build () {
./configure --prefix=/usr --disable-static &&
@@ -15,7 +19,7 @@ build () {
package () {
make DESTDIR=$PKG_DEST install
- mkdir /usr/share/doc/libpng-$PKG_VER &&
- cp README libpng-manual.txt /usr/share/doc/libpng-$PKG_VER
+ mkdir -p $PKG_DEST/usr/share/doc/libpng-$PKG_VER &&
+ cp README libpng-manual.txt $PKG_DEST/usr/share/doc/libpng-$PKG_VER
}
diff --git a/repo/system/libretls.xibuild b/repo/system/libretls.xibuild
new file mode 100644
index 0000000..97b31af
--- /dev/null
+++ b/repo/system/libretls.xibuild
@@ -0,0 +1,31 @@
+#!/bin/sh
+
+NAME="libretls"
+DESC="port of libtls from libressl to openssl"
+
+MAKEDEPS="make "
+DEPS="openssl cacerts "
+
+PKG_VER=3.5.1
+SOURCE="https://causal.agency/libretls/libretls-$PKG_VER.tar.gz"
+
+prepare () {
+ local _current _rev _age
+ IFS=: read _current _rev _age < LIBTLS_VERSION
+ printf "%d:%d:%d\n" $(( $_current - 18 )) $_rev $_age > LIBTLS_VERSION
+
+ autoreconf
+}
+
+build () {
+ ./configure \
+ --prefix=/usr \
+ --bindir=/usr/bin \
+ --sysconfdir=/etc \
+ --disable-static
+ make
+}
+
+package () {
+ make DESTDIR=$PKG_DEST install
+}
diff --git a/repo/system/menu-cache.xibuild b/repo/system/menu-cache.xibuild
new file mode 100644
index 0000000..6183364
--- /dev/null
+++ b/repo/system/menu-cache.xibuild
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+NAME="menu-cache"
+DESC="Caching mechanism for freedesktop.org compliant menus"
+
+MAKEDEPS="make libfm-extra"
+DEPS="glib "
+
+PKG_VER=1.1.0
+SOURCE="https://downloads.sourceforge.net/lxde/menu-cache-$PKG_VER.tar.xz"
+ADDITIONAL="menu-cache-1.1.0-0001-Support-gcc10-compilation.patch "
+
+prepare () {
+ apply_patches
+}
+
+build () {
+ ./configure \
+ --prefix=/usr \
+ --bindir=/usr/bin \
+ --sysconfdir=/etc \
+ --disable-static
+ make
+}
+
+package () {
+ make DESTDIR=$PKG_DEST install
+}
diff --git a/repo/system/nodejs.xibuild b/repo/system/nodejs.xibuild
new file mode 100644
index 0000000..b4918c8
--- /dev/null
+++ b/repo/system/nodejs.xibuild
@@ -0,0 +1,36 @@
+#!/bin/sh
+
+NAME="nodejs"
+DESC="JavaScript runtime built on V8 engine - LTS version"
+
+MAKEDEPS="make "
+DEPS="brotli sbase sort c-ares cacerts openssl musl libnghttp zlib "
+
+PKG_VER=16.14.2
+SOURCE="https://nodejs.org/dist/v$PKG_VER/node-v$PKG_VER.tar.gz"
+ADDITIONAL="fix-build-with-system-c-ares.patch disable-running-gyp-on-shared-deps.patch "
+
+prepare () {
+ apply_patches
+}
+
+build () {
+
+ python3 configure.py --prefix=/usr \
+ --shared-brotli \
+ --shared-zlib \
+ --shared-openssl \
+ --shared-cares \
+ --shared-nghttp2 \
+ --ninja \
+ --openssl-use-def-ca-store \
+ --with-icu-default-data-dir=$(icu-config --icudatadir) \
+ --with-intl=small-icu \
+ --without-corepack \
+ --without-npm
+ make
+}
+
+package () {
+ make DESTDIR=$PKG_DEST install
+}
diff --git a/repo/system/openntpd.xibuild b/repo/system/openntpd.xibuild
new file mode 100644
index 0000000..5dfd7e9
--- /dev/null
+++ b/repo/system/openntpd.xibuild
@@ -0,0 +1,49 @@
+#!/bin/sh
+
+NAME="openntpd"
+DESC="Lightweight NTP server ported from OpenBSD"
+
+MAKEDEPS="make "
+DEPS="libretls "
+
+PKG_VER=6.8p1
+SOURCE="https://ftp.openbsd.org/pub/OpenBSD/OpenNTPD/openntpd-$PKG_VER.tar.gz"
+ADDITIONAL="libtls-standalone.patch ntp-user.patch
+openntpd.confd
+openntpd.initd
+"
+
+prepare () {
+ apply_patches
+ autoreconf -vif
+}
+
+build () {
+ ./configure \
+ --prefix=/usr \
+ --bindir=/usr/bin \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --mandir=/usr/share/man \
+ --disable-static \
+ --enable-https-constraint \
+ --with-privsep-user=ntp
+ make
+}
+
+package () {
+ make DESTDIR=$PKG_DEST install
+
+ mkdir -p "$PKG_DEST/var/empty"
+ install -Dm755 "openntpd.initd" $PKG_DEST/etc/init.d/openntpd
+ install -Dm755 "openntpd.confd" $PKG_DEST/etc/conf.d/openntpd
+}
+
+postinstall () {
+
+ /usr/sbin/groupadd -fg 129 ntp &&
+ /usr/sbin/useradd -c "ntp daemon owner" -d /var/lib/ntp -u 117 \
+ -g ntp -s /bin/false ntp
+
+ rc-update add openntpd
+}
diff --git a/repo/system/shared-mime-info.xibuild b/repo/system/shared-mime-info.xibuild
index e5d804d..cb6b887 100644
--- a/repo/system/shared-mime-info.xibuild
+++ b/repo/system/shared-mime-info.xibuild
@@ -9,7 +9,7 @@ DEPS="sbase glib libxml2 musl pkg-config "
PKG_VER=2.2
SOURCE="https://gitlab.freedesktop.org/xdg/shared-mime-info/-/archive/$PKG_VER/shared-mime-info-$PKG_VER.tar.gz"
ADDITIONAL="
-https://raw.githubusercontent.com/archlinux/svntogit-packages/packages/shared-mime-info/trunk/MR_162.patch
+ https://raw.githubusercontent.com/archlinux/svntogit-packages/packages/shared-mime-info/trunk/MR_162.patch
"
prepare () {
@@ -22,7 +22,6 @@ build () {
meson --prefix=/usr \
-Dupdate-mimedb=false \
.. &&
- sed -i "s/xmlto /xmlto --skip-validation /g" build.ninja
ninja
}
@@ -30,3 +29,6 @@ package () {
DESTDIR=$PKG_DEST ninja install
}
+postinstall () {
+ update-mime-database /usr/share/mime
+}
diff --git a/repo/system/tzdata.xibuild b/repo/system/tzdata.xibuild
new file mode 100644
index 0000000..0813733
--- /dev/null
+++ b/repo/system/tzdata.xibuild
@@ -0,0 +1,56 @@
+#!/bin/sh
+
+NAME="tzdata"
+DESC="Timezone data"
+
+MAKEDEPS="cmake "
+DEPS="musl "
+
+PKG_VER=2022a
+SOURCE="https://www.iana.org/time-zones/repository/releases/tzdata$PKG_VER.tar.gz"
+tzcodever=2022a
+ptzver=0.5
+
+ADDITIONAL="
+https://www.iana.org/time-zones/repository/releases/tzcode$tzcodever.tar.gz
+https://dev.alpinelinux.org/archive/posixtz/posixtz-$ptzver.tar.xz
+0002-fix-implicit-declaration-warnings-by-including-strin.patch 0001-posixtz-ensure-the-file-offset-we-pass-to-lseek-is-o.patch
+"
+
+timezones="africa antarctica asia australasia europe northamerica \
+ southamerica etcetera backward factory"
+
+prepare () {
+ tar xf tzcode$tzcodever.tar.gz
+ tar xf posixtz-$ptzver.tar.xz
+ apply_patches
+}
+
+
+build() {
+ make cc="${CC:-gcc}" CFLAGS="$CFLAGS -DHAVE_STDINT_H=1"
+ TZDIR="/usr/share/zoneinfo"
+
+ cd posixtz-$ptzver
+ make posixtz
+ cd ..
+}
+
+package () {
+ ./zic -b fat -y ./yearistype -d "$PKG_DEST"/usr/share/zoneinfo $timezones
+ ./zic -b fat -y ./yearistype -d "$PKG_DEST"/usr/share/zoneinfo/right -L leapseconds $timezones
+
+ ./zic -b fat -y ./yearistype -d "$PKG_DEST"/usr/share/zoneinfo -p America/New_York
+ install -m444 -t "$PKG_DEST"/usr/share/zoneinfo iso3166.tab zone1970.tab zone.tab
+
+ mkdir -p "$PKG_DEST"/usr/sbin
+ install -m755 zic zdump "$PKG_DEST"/usr/sbin
+
+ mkdir -p "$PKG_DEST"/usr/share/man/man8
+ install -m644 zic.8 zdump.8 "$PKG_DEST"/usr/share/man/man8
+
+ rm -f "$PKG_DEST"/usr/share/zoneinfo/localtime
+ install -Dm755 posixtz-$ptzver/posixtz \
+ "$PKG_DEST"/usr/bin/posixtz
+
+}
diff --git a/repo/util/fzf.xibuild b/repo/util/fzf.xibuild
index a144f28..6926f2f 100644
--- a/repo/util/fzf.xibuild
+++ b/repo/util/fzf.xibuild
@@ -10,6 +10,7 @@ DESC="Command-line fuzzy finder"
prepare () {
sed -i 's/-w /-w -linkmode external /' Makefile
+ sed -i '61s,.*, defaultCommand = `command find -L . -mindepth 1 -path "*/\.*" -prune -o -type f -print -o -type l -print 2> /dev/null | cut -b3-`,' src/constants.go
}
build () {
diff --git a/repo/util/gawk.xibuild b/repo/util/gawk.xibuild
index 76abe77..c2f3d05 100644
--- a/repo/util/gawk.xibuild
+++ b/repo/util/gawk.xibuild
@@ -14,4 +14,5 @@ build () {
package () {
make DESTDIR=$PKG_DEST install
+
}
diff --git a/repo/util/inetutils.xibuild b/repo/util/inetutils.xibuild
index 485f7c7..6e7ed88 100644
--- a/repo/util/inetutils.xibuild
+++ b/repo/util/inetutils.xibuild
@@ -25,4 +25,5 @@ build () {
package () {
make DESTDIR=$PKG_DEST install
rm $PKG_DEST/usr/bin/hostname
+ chmod u+s $PKG_DEST/usr/bin/ping
}
diff --git a/repo/util/openssh.xibuild b/repo/util/openssh.xibuild
index c60a2ed..1430347 100644
--- a/repo/util/openssh.xibuild
+++ b/repo/util/openssh.xibuild
@@ -1,12 +1,14 @@
#!/bin/sh
MAKEDEPS="make "
-DEPS="musl krb5 openssl libedit ldns libxcrypt zlib pam"
+DEPS="musl krb5 openssl libedit ldns libxcrypt zlib pam argp-standalone"
PKG_VER=8.8p1
SOURCE=https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-$PKG_VER.tar.gz
DESC="Premier connectivity tool for remote login with the SSH protocol"
+ADDITIONAL="sshd.initd sshd.confd"
+
build () {
./configure --prefix=/usr \
--sysconfdir=/etc/ssh \
@@ -21,12 +23,14 @@ build () {
package () {
make DESTDIR=$PKG_DEST install
- install -m755 contrib/ssh-copy-id $PKG_DEST/usr/bin
+ install -Dm755 contrib/ssh-copy-id $PKG_DEST/usr/bin
- install -m644 contrib/ssh-copy-id.1 \
+ install -Dm644 contrib/ssh-copy-id.1 \
$PKG_DEST/usr/share/man/man1
- install -m755 -d $PKG_DEST/usr/share/doc/openssh-$PKG_VER
- install -m644 INSTALL LICENCE OVERVIEW README* \
+ install -Dm755 -d $PKG_DEST/usr/share/doc/openssh-$PKG_VER
+ install -Dm644 INSTALL LICENCE OVERVIEW README* \
$PKG_DEST/usr/share/doc/openssh-$PKG_VER
+ install -Dm755 sshd.initd $PKG_DEST/etc/init.d/sshd
+ install -Dm755 sshd.confd $PKG_DEST/etc/conf.d/sshd
}
diff --git a/repo/x11/adwaita-icon-theme.xibuild b/repo/x11/adwaita-icon-theme.xibuild
new file mode 100644
index 0000000..c87bd79
--- /dev/null
+++ b/repo/x11/adwaita-icon-theme.xibuild
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+NAME="adwaita-icon-theme"
+DESC="Adwaita icon theme"
+
+MAKEDEPS="make "
+DEPS="hicolor-icon-theme "
+
+PKG_VER=42.0
+SOURCE="https://download.gnome.org/sources/adwaita-icon-theme/${PKG_VER%.*}/adwaita-icon-theme-$PKG_VER.tar.xz"
+
+build () {
+ ./configure \
+ --prefix=/usr \
+ --bindir=/usr/bin \
+ --sysconfdir=/etc \
+ --disable-static
+ make
+}
+
+package () {
+ make DESTDIR=$PKG_DEST install
+}
+
+postinstall () {
+ gtk-update-icon-cache /usr/share/icons/Adwaita/
+}
diff --git a/repo/x11/gdk-pixbuf.xibuild b/repo/x11/gdk-pixbuf.xibuild
index 66d5a0f..fe704e9 100644
--- a/repo/x11/gdk-pixbuf.xibuild
+++ b/repo/x11/gdk-pixbuf.xibuild
@@ -3,22 +3,35 @@
NAME="gdk-pixbuf"
DESC="GTK+ image loading library"
-MAKEDEPS="meson ninja "
+MAKEDEPS="meson ninja gobject-introspection"
DEPS="sbase glib shared-mime-info intltool libpng libjpeg-turbo tiff musl"
PKG_VER=2.42.8
SOURCE="https://download.gnome.org/sources/gdk-pixbuf/${PKG_VER%.*}/gdk-pixbuf-$PKG_VER.tar.xz"
+ADDITIONAL="disable-tests.patch"
+
+prepare () {
+ touch gdk-pixbuf/loaders.cache
+}
+
build () {
mkdir build &&
cd build &&
meson --prefix=/usr \
-Dinstalled_tests=false \
- -Dpng=disabled \
.. &&
ninja
}
+check () {
+ meson test -t 10
+}
+
package () {
DESTDIR=$PKG_DEST ninja install
}
+
+postinstall () {
+ gdk-pixbuf-query-loaders --update-cache
+}
diff --git a/repo/x11/gsettings-desktop-schemas.xibuild b/repo/x11/gsettings-desktop-schemas.xibuild
new file mode 100644
index 0000000..72092d1
--- /dev/null
+++ b/repo/x11/gsettings-desktop-schemas.xibuild
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+NAME="gsettings-desktop-schemas"
+DESC="A collection of GSettings schemas"
+
+MAKEDEPS="meson ninja "
+DEPS="glib base-fonts "
+
+PKG_VER=42.0
+SOURCE="https://download.gnome.org/sources/gsettings-desktop-schemas/${PKG_VER%.*}/gsettings-desktop-schemas-$PKG_VER.tar.xz"
+
+build () {
+ mkdir build &&
+ cd build &&
+ meson --prefix=/usr \
+ .. &&
+ ninja
+}
+
+package () {
+ DESTDIR=$PKG_DEST ninja install
+}
+
+postinstall() {
+ glib-compile-schemas /usr/share/glib-2.0/schemas
+}
diff --git a/repo/x11/gtk2.xibuild b/repo/x11/gtk2.xibuild
new file mode 100644
index 0000000..1798730
--- /dev/null
+++ b/repo/x11/gtk2.xibuild
@@ -0,0 +1,42 @@
+#!/bin/sh
+
+NAME="gtk2"
+DESC="The GTK+ Toolkit (v2)"
+
+MAKEDEPS="meson ninja iso-codes libpng shared-mime-info"
+DEPS="atk at-spi2-atk sbase cairo gobject-introspection fontconfig fribidi gdk-pixbuf glib harfbuzz libepoxy intltool libx11 libxcomposite libxcursor libxdamage libxext libxfixes libxi libxinerama libxkbcommon libxrandr musl pango shared-mime-info wayland "
+
+PKG_VER=2.24.33
+SOURCE="https://download.gnome.org/sources/gtk+/${PKG_VER%.*}/gtk+-$PKG_VER.tar.xz"
+
+prepare () {
+ # don't build demos
+ sed -e "s/^\(SRC_SUBDIRS =.*\)demos\(.*\)$/\1\2/" -i Makefile.am Makefile.in
+ aclocal -I m4
+ autoreconf
+ automake --add-missing
+}
+
+build () {
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --with-xinput=yes \
+ --without-libjasper \
+ --with-included-loaders=png \
+ --with-gdktarget=x11 \
+ --enable-man
+
+ sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+ make
+}
+
+package () {
+ make DESTDIR=$PKG_DEST install
+}
+
+postinstall () {
+ /usr/bin/gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules
+ /usr/bin/gdk-pixbuf-query-loaders > /etc/gtk-2.0/gdk-pixbuf.loaders
+}
diff --git a/repo/x11/gtk3.xibuild b/repo/x11/gtk3.xibuild
new file mode 100644
index 0000000..14e4989
--- /dev/null
+++ b/repo/x11/gtk3.xibuild
@@ -0,0 +1,43 @@
+#!/bin/sh
+
+NAME="gtk3"
+DESC="The GTK+ Toolkit (v3)"
+
+MAKEDEPS="meson ninja iso-codes gtk2"
+DEPS="atk at-spi2-atk sbase cairo gobject-introspection fontconfig fribidi gdk-pixbuf glib harfbuzz libepoxy intltool libx11 libxcomposite libxcursor libxdamage libxext libxfixes libxi libxinerama libxkbcommon libxrandr musl pango shared-mime-info wayland adwaita-icon-theme gsettings-desktop-schemas"
+
+PKG_VER=3.24.33
+SOURCE="https://download.gnome.org/sources/gtk+/${PKG_VER%.*}/gtk+-$PKG_VER.tar.xz"
+
+
+prepare () {
+ # don't build demos
+ sed -e "s/^\(SRC_SUBDIRS =.*\)demos\(.*\)$/\1\2/" -i Makefile.am Makefile.in
+ aclocal -I m4
+ autoreconf
+ automake --add-missing
+}
+
+build () {
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --with-xinput=yes \
+ --without-libjasper \
+ --with-included-loaders=png \
+ --with-gdktarget=x11 \
+ --enable-man
+
+ make
+}
+
+package () {
+ make DESTDIR=$PKG_DEST install
+}
+
+postinstall () {
+ [ -d /etc/gtk-3.0 ] || mkdir - /etc/gtk-3.0
+ /usr/bin/gtk-query-immodules-3.0 > /etc/gtk-3.0/gtk.immodules
+ /usr/bin/gdk-pixbuf-query-loaders > /etc/gtk-3.0/gdk-pixbuf.loaders
+}
diff --git a/repo/x11/harfbuzz.xibuild b/repo/x11/harfbuzz.xibuild
index aa876b3..d86a83e 100644
--- a/repo/x11/harfbuzz.xibuild
+++ b/repo/x11/harfbuzz.xibuild
@@ -3,8 +3,8 @@
NAME="harfbuzz"
DESC="Text shaping library"
-MAKEDEPS="meson ninja gtk-doc python-pygments"
-DEPS="freetype2 glib graphite musl"
+MAKEDEPS="meson ninja gtk-doc python-pygments gobject-introspection"
+DEPS="freetype2 glib graphite musl "
PKG_VER=4.2.0
SOURCE="https://github.com/harfbuzz/harfbuzz/archive/$PKG_VER.tar.gz"
@@ -13,6 +13,7 @@ build () {
mkdir build &&
cd build &&
meson --prefix=/usr \
+ -Ddefault_library=shared \
-Dglib=enabled \
-Dgobject=enabled \
-Dgraphite=enabled \
diff --git a/repo/x11/hicolor-icon-theme.xibuild b/repo/x11/hicolor-icon-theme.xibuild
new file mode 100644
index 0000000..3d51994
--- /dev/null
+++ b/repo/x11/hicolor-icon-theme.xibuild
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+NAME="hicolor-icon-theme"
+DESC="Freedesktop.org Hicolor icon theme"
+
+MAKEDEPS="make "
+DEPS="musl "
+
+PKG_VER=0.17
+SOURCE="https://icon-theme.freedesktop.org/releases/hicolor-icon-theme-$PKG_VER.tar.xz"
+
+build () {
+ ./configure \
+ --prefix=/usr
+ make
+}
+
+package () {
+ make DESTDIR=$PKG_DEST install
+}
+
+postinstall () {
+ gtk-update-icon-cache /usr/share/icons/hicolor/
+}
diff --git a/repo/x11/libva.xibuild b/repo/x11/libva.xibuild
index 249fd3f..7d6c66b 100644
--- a/repo/x11/libva.xibuild
+++ b/repo/x11/libva.xibuild
@@ -9,10 +9,14 @@ PKG_VER=2.13.0
SOURCE=https://github.com/intel/libva/releases/download/$PKG_VER/libva-$PKG_VER.tar.bz2
build () {
- ./configure $XORG_CONFIG
- make
+ mkdir build &&
+ cd build
+ meson --prefix=/usr \
+ -Dwith_glx=yes \
+ -Dwith_wayland=yes
+ ninja
}
package () {
- make DESTDIR=$PKG_DEST install
+ DESTDIR=$PKG_DEST ninja install
}
diff --git a/repo/x11/maim.xibuild b/repo/x11/maim.xibuild
new file mode 100644
index 0000000..4f93af0
--- /dev/null
+++ b/repo/x11/maim.xibuild
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+NAME="maim"
+DESC="Utility that takes screenshots of your desktop"
+
+MAKEDEPS="cmake "
+DEPS="mesa icu libxrender libxrandr libxcomposite libjpeg-turbo libpng libwebp slop glm"
+
+PKG_VER=5.7.4
+SOURCE="https://github.com/naelstrof/maim/archive/v$PKG_VER.tar.gz"
+
+build () {
+ cmake -B build -G Ninja \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=/usr/lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DBUILD_STATIC_LIBS=OFF
+ cmake --build build
+}
+
+package () {
+ DESTDIR="$PKG_DEST" cmake --install build
+}
diff --git a/repo/x11/mesa.xibuild b/repo/x11/mesa.xibuild
index 3a5bcbf..1177345 100644
--- a/repo/x11/mesa.xibuild
+++ b/repo/x11/mesa.xibuild
@@ -31,8 +31,15 @@ build () {
--buildtype=release \
-Ddri-drivers=$DRI_DRIVERS \
-Dgallium-drivers=$GALLIUM_DRV \
+ -Dplatforms=x11,wayland \
-Dgallium-nine=false \
-Dglx=dri \
+ -Dopengl=true \
+ -Dosmesa=true \
+ -Dshared-glapi=enabled \
+ -Degl=enabled \
+ -Dgles1=disabled \
+ -Dgles2=disabled \
-Dvalgrind=disabled \
-Dlibunwind=disabled \
.. &&
diff --git a/repo/x11/pango.xibuild b/repo/x11/pango.xibuild
index 03458aa..8b507dc 100644
--- a/repo/x11/pango.xibuild
+++ b/repo/x11/pango.xibuild
@@ -3,7 +3,7 @@
NAME="pango"
DESC="library for layout and rendering of text"
-MAKEDEPS="meson ninja"
+MAKEDEPS="meson ninja python-pygments git"
DEPS="sbase cairo fontconfig freetype2 glib libx11 libxft libxrender musl fribidi harfbuzz"
PKG_VER=1.50.5
@@ -17,7 +17,11 @@ prepare () {
build () {
mkdir build &&
cd build &&
- meson --prefix=/usr .. &&
+ meson --prefix=/usr \
+ -Dintrospection=enabled \
+ -Dgtk_doc=false \
+ ..
+
ninja
}
diff --git a/repo/x11/sdl2.xibuild b/repo/x11/sdl2.xibuild
new file mode 100644
index 0000000..0f0778f
--- /dev/null
+++ b/repo/x11/sdl2.xibuild
@@ -0,0 +1,38 @@
+#!/bin/sh
+
+NAME="sdl2"
+DESC="development library designed to provide low level access to audio, keyboard, mouse, joystick and graphics"
+
+MAKEDEPS="cmake "
+DEPS="alsa-lib eudev libx11 libxext libxcursor libxi libxkbcommon libxrender libxscrnsaver libusb pulseaudio wayland "
+
+PKG_VER=2.0.20
+SOURCE="https://www.libsdl.org/release/SDL2-$PKG_VER.tar.gz"
+ADDITIONAL="directfb-cflags.patch "
+
+build () {
+ cmake -B build -G Ninja \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=/usr/lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DBUILD_STATIC_LIBS=OFF \
+ -DSDL_TEST=OFF \
+ -DSDL_ALSA=ON \
+ -DSDL_CLOCK_GETTIME=ON \
+ -DSDL_ARTS=OFF \
+ -DSDL_ESD=OFF \
+ -DSDL_NAS=OFF \
+ -DSDL_RPATH=OFF \
+ -DSDL_X11=ON \
+ -DSDL_DIRECTFB=ON \
+ -DSDL_WAYLAND=ON \
+ -DSDL_STATIC=OFF \
+ -DSDL_SHARED=ON \
+ -DSDL_PIPEWIRE_SHARED=ON \
+ -DSDL_PULSEAUDIO_SHARED=ON
+ cmake --build build
+}
+
+package () {
+ DESTDIR="$PKG_DEST" cmake --install build
+}
diff --git a/repo/x11/slop.xibuild b/repo/x11/slop.xibuild
new file mode 100644
index 0000000..263118b
--- /dev/null
+++ b/repo/x11/slop.xibuild
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+NAME="slop"
+DESC="Application that queries for a selection from the user and prints the region to stdout"
+
+MAKEDEPS="cmake "
+DEPS="icu libice libsm libx11 libxext libxrender glm glew"
+
+PKG_VER=7.6
+SOURCE="https://github.com/naelstrof/slop/archive/v$PKG_VER.tar.gz"
+
+build () {
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=/usr/lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DBUILD_STATIC_LIBS=OFF .
+ make
+}
+
+package () {
+ make DESTDIR="$PKG_DEST" install
+}
diff --git a/repo/x11/xf86-video-intel.xibuild b/repo/x11/xf86-video-intel.xibuild
index 2b46e0c..ac5fce2 100644
--- a/repo/x11/xf86-video-intel.xibuild
+++ b/repo/x11/xf86-video-intel.xibuild
@@ -6,17 +6,23 @@ DEPS="xorg-server mesa libxvmc pixman xcb-util"
DESC="X.org intel video driver"
PKG_VER=2.99.917
-# TODO switch to official source not blfs
-SOURCE=https://anduin.linuxfromscratch.org/BLFS/xf86-video-intel/xf86-video-intel-20210222.tar.xz
-#BRANCH=$PKG_VER
+_pkgver=31486f40f8e8f8923ca0799aea84b58799754564
+SOURCE=https://github.com/freedesktop/xorg-xf86-video-intel/archive/$_pkgver.zip
+
+prepare () {
+ autoreconf -vif
+}
build () {
- ./autogen.sh
- ./configure $XORG_CONFIG \
- --enable-kms-only \
- --enable-uxa \
- --mandir=/usr/share/man &&
- make
+ export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --enable-xvmc \
+ --disable-selective-werror \
+ --with-default-dri=3
+ make
}
package () {
@@ -26,12 +32,13 @@ package () {
$PKG_DEST/usr/share/man/man1/intel-virtual-output.1 &&
sed -i '/\.TH/s/4/1/' $PKG_DEST/usr/share/man/man1/intel-virtual-output.1
+
mkdir -p $PKG_DEST/etc/X11/xorg.conf.d
cat >> $PKG_DEST/etc/X11/xorg.conf.d/20-intel.conf << "EOF"
Section "Device"
Identifier "Intel Graphics"
Driver "intel"
- #Option "DRI" "2" # DRI3 is default
+ #Option "DRI" "3" # DRI3 is default
#Option "AccelMethod" "sna" # default
#Option "AccelMethod" "uxa" # fallback
EndSection
diff --git a/repo/x11/xorg-server.xibuild b/repo/x11/xorg-server.xibuild
index c65f6fe..11553aa 100644
--- a/repo/x11/xorg-server.xibuild
+++ b/repo/x11/xorg-server.xibuild
@@ -11,8 +11,33 @@ build () {
cd build &&
meson --prefix=$XORG_PREFIX \
- -Dsuid_wrapper=true \
- -Dxkb_output_dir=/var/lib/xkb &&
+ -Dxorg=true \
+ -Dxephyr=true \
+ -Dglamor=true \
+ -Dxnest=true \
+ -Dxvfb=true \
+ -Dxwin=false \
+ -Dglx=true \
+ -Dxdmcp=true \
+ -Dxdm-auth-1=true \
+ -Dxcsecurity=true \
+ -Dsecure-rpc=false \
+ -Dipv6=true \
+ -Dxkb_dir=/usr/share/X11/xkb \
+ -Dxkb_output_dir=/var/lib/xkb \
+ -Dlisten_tcp=false \
+ -Dlisten_unix=true \
+ -Dlisten_local=true \
+ -Dsuid_wrapper=true \
+ -Dpciaccess=true \
+ -Dudev=true \
+ -Dhal=false \
+ -Dsystemd_logind=false \
+ -Ddpms=true \
+ -Ddri1=true \
+ -Ddri2=true \
+ -Ddri3=true \
+ ..
ninja
}
diff --git a/repo/xi/xipkg.xibuild b/repo/xi/xipkg.xibuild
index 6165734..be1e45f 100644
--- a/repo/xi/xipkg.xibuild
+++ b/repo/xi/xipkg.xibuild
@@ -1,9 +1,9 @@
#!/bin/sh
MAKEDEPS="make"
-DEPS="openssl curl dash xiutils findutils diffutils sed xichroot grep base64"
+DEPS="openssl curl dash xiutils findutils diffutils sed xichroot grep base64 sort"
-PKG_VER=1.2.2
+PKG_VER=1.3.1
SOURCE=https://git.davidovski.xyz/xilinux/xipkg.git
BRANCH="v$PKG_VER"
diff --git a/repo/xi/xiutils.xibuild b/repo/xi/xiutils.xibuild
index 0c8ae25..3d69986 100644
--- a/repo/xi/xiutils.xibuild
+++ b/repo/xi/xiutils.xibuild
@@ -3,7 +3,7 @@
MAKEDEPS="make gcc"
DEPS="musl sh"
-PKG_VER=1.2.4
+PKG_VER=1.3.1
SOURCE=https://git.davidovski.xyz/xilinux/xiutils.git
BRANCH="v$PKG_VER"