diff options
author | davidovski <david@davidovski.xyz> | 2022-04-17 22:07:52 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-04-17 22:07:52 +0100 |
commit | c35d083dc525e223b085ec00e6863ea6eafb003c (patch) | |
tree | 5bbe25b4f92cd1821c8cbbefed9c19de6e42b98e /repo | |
parent | 7cc715c1249422ddf91987be64a35eef43e3e62d (diff) |
updated musl
Diffstat (limited to 'repo')
38 files changed, 760 insertions, 36 deletions
diff --git a/repo/apps/ncmpcpp.xibuild b/repo/apps/ncmpcpp.xibuild new file mode 100644 index 0000000..a27264e --- /dev/null +++ b/repo/apps/ncmpcpp.xibuild @@ -0,0 +1,26 @@ +#!/bin/sh + +NAME="ncmpcpp" +DESC="Ncurses based MPD client inspired by ncmpc" + +MAKEDEPS="make " +DEPS="boost icu curl libmpdclient musl ncurses readline" + +PKG_VER=0.9.2 +SOURCE="http://rybczak.net/ncmpcpp/stable/ncmpcpp-$PKG_VER.tar.bz2" + +build () { + ./configure \ + BOOST_LIB_SUFFIX=-mt \ + --prefix=/usr \ + --bindir=/usr/bin \ + --sysconfdir=/etc \ + --disable-static \ + --enable-clock \ + --enable-visualizer + make +} + +package () { + make DESTDIR=$PKG_DEST install +} diff --git a/repo/devel/boost.xibuild b/repo/devel/boost.xibuild new file mode 100644 index 0000000..b97cab7 --- /dev/null +++ b/repo/devel/boost.xibuild @@ -0,0 +1,23 @@ +#!/bin/sh + +NAME="boost" +DESC="Free peer-reviewed portable C++ source libraries" + +MAKEDEPS="make python which zlib icu" +DEPS="musl gcc bzip2 zlib mpi python icu" + +PKG_VER=1.79.0 +SOURCE="https://boostorg.jfrog.io/artifactory/main/release/$PKG_VER/source/boost_$(echo $PKG_VER | sed "s/\./_/g").tar.bz2" +ADDITIONAL="python-3.10.patch 0001-revert-cease-dependence-on-range.patch boost-1.57.0-python-libpython_dep.patch boost-1.57.0-python-abi_letters.patch " + +prepare () { + ./bootstrap.sh --prefix=/usr --with-python=python3 +} + +build () { + ./b2 --debug-building --no-cmake-config --toolset=gcc runtime-link=shared link=shared,static +} + +package () { + ./b2 install --prefix=$PKG_DEST/usr +} diff --git a/repo/devel/uthash.xibuild b/repo/devel/uthash.xibuild new file mode 100644 index 0000000..e9dd494 --- /dev/null +++ b/repo/devel/uthash.xibuild @@ -0,0 +1,15 @@ +#!/bin/sh + +NAME="uthash" +DESC="C macros for hash tables and more" + +MAKEDEPS="make " +DEPS="rxvt-unicode" + +PKG_VER=2.3.0 +SOURCE="https://github.com/troydhanson/uthash/archive/v$PKG_VER.tar.gz" + +package () { + mkdir -p $PKG_DEST/usr/include + install -m 0644 src/*.h $PKG_DEST/usr/include/ +} diff --git a/repo/font/font-opensans.xibuild b/repo/font/font-opensans.xibuild new file mode 100644 index 0000000..009c172 --- /dev/null +++ b/repo/font/font-opensans.xibuild @@ -0,0 +1,15 @@ +#!/bin/sh + +NAME="font-opensans" +DESC="Humanist Sans Serif Typeface" + +MAKEDEPS="sbase" +DEPS="fontconfig mkfontscale " + +SOURCE="https://github.com/googlefonts/opensans.git" + +package() { + install -D -m644 fonts/ttf/*.ttf -t $PKG_DEST/usr/share/fonts/TTF/ +} + + diff --git a/repo/media/libjpeg-turbo.xibuild b/repo/media/libjpeg-turbo.xibuild new file mode 100644 index 0000000..5840097 --- /dev/null +++ b/repo/media/libjpeg-turbo.xibuild @@ -0,0 +1,25 @@ +#!/bin/sh + +NAME="libjpeg-turbo" +DESC="Accelerated baseline JPEG compression and decompression library" + +MAKEDEPS="" +DEPS="musl " + +PKG_VER=2.1.3 +SOURCE="https://downloads.sourceforge.net/libjpeg-turbo/libjpeg-turbo-$PKG_VER.tar.gz" + +build () { + cmake -B build -G Ninja \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=/usr/lib \ + -DBUILD_SHARED_LIBS=True \ + -DWITH_JPEG8=1 \ + -DBUILD_STATIC_LIBS=OFF + cmake --build build +} + +package () { + DESTDIR="$PKG_DEST" cmake --install build +} + diff --git a/repo/media/libmpdclient.xibuild b/repo/media/libmpdclient.xibuild new file mode 100644 index 0000000..a80ad57 --- /dev/null +++ b/repo/media/libmpdclient.xibuild @@ -0,0 +1,20 @@ +#!/bin/sh + +NAME="libmpdclient" +DESC="An asynchronous API library for interfacing MPD in the C, C++ & Objective C languages" + +MAKEDEPS="meson ninja " +DEPS="musl" + +PKG_VER=2.19 +SOURCE="https://www.musicpd.org/download/libmpdclient/${PKG_VER%.*}/libmpdclient-$PKG_VER.tar.xz" + +build () { + cd build && + meson --prefix=/usr .. && + ninja +} + +package () { + DESTDIR=$PKG_DEST ninja install +} diff --git a/repo/media/libwebp.xibuild b/repo/media/libwebp.xibuild new file mode 100644 index 0000000..ff84576 --- /dev/null +++ b/repo/media/libwebp.xibuild @@ -0,0 +1,33 @@ +#!/bin/sh + +NAME="libwebp" +DESC="Libraries for working with WebP images" + +MAKEDEPS="make " +DEPS="musl " + +PKG_VER=1.2.2 +SOURCE="https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-$PKG_VER.tar.gz" + +prepare() { + ./autogen.sh +} + +build () { + ./configure \ + --prefix=/usr + --bindir=/usr/bin \ + --sysconfdir=/etc \ + --disable-static \ + --enable-libwebpmux \ + --enable-libwebpdemux \ + --enable-libwebpdecoder \ + --disable-tiff + make +} + +package () { + make DESTDIR=$PKG_DEST install + mkdir -p $PKG_DEST/usr/share/doc/libwebp + install -Dm644 PATENTS README $PKG_DEST/usr/share/doc/libwebp +} diff --git a/repo/media/mpd.xibuild b/repo/media/mpd.xibuild new file mode 100644 index 0000000..9229a01 --- /dev/null +++ b/repo/media/mpd.xibuild @@ -0,0 +1,47 @@ +#!/bin/sh + +NAME="mpd" +DESC="Music daemon that plays MP3, FLAC, Ogg Vorbis files and Audio CDs" + +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" + +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 () { + cd build + meson --prefix=/usr \ + -Dopus=enabled \ + -Ddocumentation=enabled \ + -Dlibmpdclient=enabled \ + -Dwavpack=enabled \ + -Dpipewire=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/pulsemixer.xibuild b/repo/media/pulsemixer.xibuild new file mode 100644 index 0000000..79e7a74 --- /dev/null +++ b/repo/media/pulsemixer.xibuild @@ -0,0 +1,19 @@ +#!/bin/sh + +NAME="pulsemixer" +DESC="CLI and curses mixer for PulseAudio" + +MAKEDEPS="" +DEPS="pulseaudio +python" + +PKG_VER=1.5.1 +SOURCE="https://github.com/GeorgeFilipkin/pulsemixer/archive/$PKG_VER.tar.gz" + +build () { + python3 setup.py build +} + +package () { + python3 setup.py install --prefix=/usr --root=$PKG_DEST +} diff --git a/repo/media/tiff.xibuild b/repo/media/tiff.xibuild new file mode 100644 index 0000000..544116b --- /dev/null +++ b/repo/media/tiff.xibuild @@ -0,0 +1,32 @@ +#!/bin/sh + +NAME="tiff" +DESC="Provides support for the Tag Image File Format or TIFF" + +MAKEDEPS="" +DEPS="musl xz zlib zstd " + +PKG_VER=4.3.0 +SOURCE="https://gitlab.com/libtiff/libtiff/-/archive/v$PKG_VER/libtiff-v$PKG_VER.tar.gz" +ADDITIONAL="CVE-2018-12900.patch " + +prepare () { + apply_patches + autoreconf -fi +} + +build () { + ./configure \ + --prefix=/usr + --bindir=/usr/bin \ + --sysconfdir=/etc \ + --disable-static \ + --enable-cxx + + make +} + +package () { + make DESTDIR=$PKG_DEST install +} + diff --git a/repo/media/wavpack.xibuild b/repo/media/wavpack.xibuild new file mode 100644 index 0000000..eb9ccfc --- /dev/null +++ b/repo/media/wavpack.xibuild @@ -0,0 +1,25 @@ +#!/bin/sh + +NAME="wavpack" +DESC="Audio compression format with lossless, lossy, and hybrid compression modes" + +MAKEDEPS="make " +DEPS="musl" + +PKG_VER=5.4.0 +SOURCE="http://www.wavpack.com/wavpack-$PKG_VER.tar.xz" + +build () { + ./configure \ + --prefix=/usr + --bindir=/usr/bin \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --disable-static + make +} + +package () { + make DESTDIR=$PKG_DEST install +} diff --git a/repo/linux/broadcom-wl.xibuild b/repo/skip/broadcom-wl.xibuild index 948c9bd..948c9bd 100644 --- a/repo/linux/broadcom-wl.xibuild +++ b/repo/skip/broadcom-wl.xibuild diff --git a/repo/system/at-spi2-atk.xibuild b/repo/system/at-spi2-atk.xibuild new file mode 100644 index 0000000..9cdecd9 --- /dev/null +++ b/repo/system/at-spi2-atk.xibuild @@ -0,0 +1,22 @@ +#!/bin/sh + +NAME="at-spi2-atk" +DESC="A GTK+ module that bridges ATK to D-Bus at-spi" + +MAKEDEPS="meson ninja " +DEPS="at-spi2-core atk dbus glib " + +PKG_VER=2.38.0 +SOURCE="https://download.gnome.org/sources/at-spi2-atk/${PKG_VER%.*}/at-spi2-atk-$PKG_VER.tar.xz" + +build () { + mkdir build && + cd build && + meson --prefix=/usr \ + .. && + ninja +} + +package () { + DESTDIR=$PKG_DEST ninja install +} diff --git a/repo/system/at-spi2-core.xibuild b/repo/system/at-spi2-core.xibuild new file mode 100644 index 0000000..58e56a2 --- /dev/null +++ b/repo/system/at-spi2-core.xibuild @@ -0,0 +1,27 @@ +#!/bin/sh + +NAME="at-spi2-core" +DESC="Protocol definitions and daemon for D-Bus at-spi" + +MAKEDEPS="meson ninja " +DEPS="dbus glib intltool libx11 libxi libxtst musl " + +PKG_VER=2.44.0 +SOURCE="https://download.gnome.org/sources/at-spi2-core/${PKG_VER%.*}/at-spi2-core-$PKG_VER.tar.xz" + +build () { + mkdir build && + cd build && + meson --prefix=/usr \ + -Dx11=yes \ + -Dintrospection=yes \ + -Ddocs=true \ + -Ddbus_daemon=/usr/bin/dbus-daemon \ + .. && + ninja +} + +package () { + DESTDIR=$PKG_DEST ninja install + rm -rf $PKG_DEST/usr/lib/systemd +} diff --git a/repo/system/atk.xibuild b/repo/system/atk.xibuild new file mode 100644 index 0000000..4fd470a --- /dev/null +++ b/repo/system/atk.xibuild @@ -0,0 +1,22 @@ +#!/bin/sh + +NAME="atk" +DESC="A library providing a set of interfaces for accessibility" + +MAKEDEPS="meson ninja " +DEPS="glib intltool musl " + +PKG_VER=2.38.0 +SOURCE="https://download.gnome.org/sources/atk/${PKG_VER%.*}/atk-$PKG_VER.tar.xz" + +build () { + mkdir build && + cd build && + meson --prefix=/usr \ + .. && + ninja +} + +package () { + DESTDIR=$PKG_DEST ninja install +} diff --git a/repo/system/binutils.xibuild b/repo/system/binutils.xibuild index e65314f..3d67d07 100644 --- a/repo/system/binutils.xibuild +++ b/repo/system/binutils.xibuild @@ -6,20 +6,16 @@ DEPS="musl zlib libelf" PKG_VER=2.37 SOURCE=https://ftp.gnu.org/gnu/binutils/binutils-$PKG_VER.tar.xz -PATCH_SOURCE="https://raw.githubusercontent.com/dslm4515/Musl-LFS/master/patches/binutils-alpine" ADDITIONAL=" - $PATCH_SOURCE/0001-Revert-PR25882-.gnu.attributes-are-not-checked-for-s.patch - $PATCH_SOURCE/bfd-close-file-desriptor-if-there-is-no-archive-fd.patch - $PATCH_SOURCE/binutils-ld-fix-static-linking.patch - $PATCH_SOURCE/defang-no-split.patch - " +0001-Revert-PR25882-.gnu.attributes-are-not-checked-for-s.patch +bfd-close-file-desriptor-if-there-is-no-archive-fd.patch +binutils-ld-fix-static-linking.patch +" DESC="Tools for handling object files" prepare () { - for p in *.patch; do - patch -Np1 -i $p || true - done + apply_patches find . -name '[a-z]*\.[0-9]*' -empty -exec rm -f {} \; } @@ -27,18 +23,13 @@ prepare () { build () { mkdir build cd build - case $(uname -m) in - x86_64) export EXTRA_CONFIG=" --enable-targets=x86_64-pep " - ;; - i686) export EXTRA_CONFIG=" --disable-separate-code --enable-targets=x86_64-linux-gnu,x86_64-pep" - ;; - esac ../configure \ --prefix=/usr \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --disable-multilib \ + --enable-shared \ --enable-ld=default \ --enable-gold \ --enable-64-bit-bfd \ @@ -51,8 +42,7 @@ build () { --with-pic \ --disable-werror \ --disable-nls \ - --with-mmap \ - --with-system-zlib + --with-mmap make tooldir=/usr } diff --git a/repo/system/dbus.xibuild b/repo/system/dbus.xibuild index ecda47d..3bbfc31 100644 --- a/repo/system/dbus.xibuild +++ b/repo/system/dbus.xibuild @@ -34,6 +34,7 @@ build () { package () { make DESTDIR=$PKG_DEST install + mv usr/lib/lib*.so.* $PKG_DEST/usr/lib/ chown root:messagebus $PKG_DEST/usr/libexec/dbus-daemon-launch-helper && chmod 4750 $PKG_DEST/usr/libexec/dbus-daemon-launch-helper diff --git a/repo/system/lcms2.xibuild b/repo/system/lcms2.xibuild new file mode 100644 index 0000000..3f9cdd3 --- /dev/null +++ b/repo/system/lcms2.xibuild @@ -0,0 +1,27 @@ +#!/bin/sh + +NAME="lcms2" +DESC="Color Management Engine" + +MAKEDEPS="make libjpeg-turbo tiff zlib" +DEPS="musl " + +PKG_VER=2.13.1 +SOURCE="https://github.com/mm2/Little-CMS/releases/download/lcms$PKG_VER/lcms2-$PKG_VER.tar.gz" + +build () { + ./configure \ + --prefix=/usr + --bindir=/usr/bin \ + --sysconfdir=/etc \ + --disable-static \ + --with-jpeg \ + --with-tiff \ + --with-zlib \ + --with-threads + make +} + +package () { + make DESTDIR=$PKG_DEST install +} diff --git a/repo/system/libevent.xibuild b/repo/system/libevent.xibuild new file mode 100644 index 0000000..84e2dd4 --- /dev/null +++ b/repo/system/libevent.xibuild @@ -0,0 +1,28 @@ +#!/bin/sh + +NAME="libevent" +DESC="An event notification library" + +MAKEDEPS="make " +DEPS="openssl musl " + +PKG_VER=2.1.12 +SOURCE="https://github.com/libevent/libevent/releases/download/release-$PKG_VER-stable/libevent-$PKG_VER-stable.tar.gz" + +prepare() { + sed -i '1s|^#!/usr/bin/env python$|#!/usr/bin/python3|' event_rpcgen.py + sed -i -e "s/@VERSION@/$PKG_VER/" *.pc.in +} + +build () { + ./configure \ + --prefix=/usr + --bindir=/usr/bin \ + --sysconfdir=/etc \ + --disable-static + make +} + +package () { + make -j1 DESTDIR=$PKG_DEST install +} diff --git a/repo/system/mpfr.xibuild b/repo/system/mpfr.xibuild index 1e62aac..a0fc726 100644 --- a/repo/system/mpfr.xibuild +++ b/repo/system/mpfr.xibuild @@ -4,7 +4,7 @@ MAKEDEPS="make " DEPS="musl gmp" PKG_VER=4.1.0 -SOURCE=https://www.mpfr.org/mpfr-current/mpfr-$PKG_VER.tar.xz +SOURCE=https://ftp.gnu.org/gnu/mpfr/mpfr-$PKG_VER.tar.bz2 DESC="Multiple-precision floating-point library" diff --git a/repo/system/musl.xibuild b/repo/system/musl.xibuild index 13879f0..6f15382 100644 --- a/repo/system/musl.xibuild +++ b/repo/system/musl.xibuild @@ -3,15 +3,16 @@ MAKEDEPS="" DEPS="" -PKG_VER=1.2.2 +PKG_VER=1.2.3 SOURCE=https://musl.libc.org/releases/musl-$PKG_VER.tar.gz ADDITIONAL=" - https://raw.githubusercontent.com/dslm4515/Musl-LFS/master/patches/musl-mlfs/fix-utmp-wtmp-paths.patch - https://raw.githubusercontent.com/dslm4515/Musl-LFS/master/patches/musl-mlfs/change-scheduler-functions-Linux-compatib.patch - https://raw.githubusercontent.com/dslm4515/Musl-LFS/master/patches/musl-alpine/0001-riscv64-define-ELF_NFPREG.patch - https://raw.githubusercontent.com/dslm4515/Musl-LFS/master/patches/musl-alpine/handle-aux-at_base.patch - https://raw.githubusercontent.com/dslm4515/Musl-LFS/master/patches/musl-alpine/syscall-cp-epoll.patch +0001-riscv64-define-ELF_NFPREG.patch +change-scheduler-functions-Linux-compatib.patch +fix-utmp-wtmp-paths.patch +handle-aux-at_base.patch +qsort_r.patch +syscall-cp-epoll.patch " DESC="Implementation of the C standard library built on top of the Linux system call API" diff --git a/repo/system/ncurses.xibuild b/repo/system/ncurses.xibuild index f34211b..784ec63 100644 --- a/repo/system/ncurses.xibuild +++ b/repo/system/ncurses.xibuild @@ -14,8 +14,9 @@ build () { --with-shared \ --without-debug \ --without-normal \ + --enable-pc-files \ --enable-widec \ - + --with-pkg-config-libdir=/usr/lib/pkgconfig make } diff --git a/repo/system/perl.xibuild b/repo/system/perl.xibuild index 494b9f1..f12b9cf 100644 --- a/repo/system/perl.xibuild +++ b/repo/system/perl.xibuild @@ -3,7 +3,7 @@ MAKEDEPS="make sed" DEPS="gdbm musl bzip2 zlib tar" -PKG_VER=5.34.0 +PKG_VER=5.34.1 SOURCE=https://www.cpan.org/src/5.0/perl-$PKG_VER.tar.gz DESC="The Practical Extraction and Report Language" ADDITIONAL=" diff --git a/repo/system/re2.xibuild b/repo/system/re2.xibuild new file mode 100644 index 0000000..c4ef938 --- /dev/null +++ b/repo/system/re2.xibuild @@ -0,0 +1,18 @@ +#!/bin/sh + +NAME="re2" +DESC="Efficient, principled regular expression library" + +MAKEDEPS="make " +DEPS="musl " + +PKG_VER=2022.04.01 +SOURCE="https://github.com/google/re2/archive/$(echo $PKG_VER | sed "s/\./-/g").tar.gz" + +build () { + make PREFIX=/usr +} + +package () { + make PREFIX=/usr DESTDIR=$PKGDEST install +} diff --git a/repo/system/shared-mime-info.xibuild b/repo/system/shared-mime-info.xibuild new file mode 100644 index 0000000..e5d804d --- /dev/null +++ b/repo/system/shared-mime-info.xibuild @@ -0,0 +1,32 @@ +#!/bin/sh + +NAME="shared-mime-info" +DESC="Freedesktop.org Shared MIME Info" + +MAKEDEPS="meson ninja itstool libxml2-utils xmlto libxml2 glib" +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 +" + +prepare () { + patch -Rp1 -i MR_162.patch +} + +build () { + mkdir build && + cd build && + meson --prefix=/usr \ + -Dupdate-mimedb=false \ + .. && + sed -i "s/xmlto /xmlto --skip-validation /g" build.ninja + ninja +} + +package () { + DESTDIR=$PKG_DEST ninja install +} + diff --git a/repo/system/snappy.xibuild b/repo/system/snappy.xibuild new file mode 100644 index 0000000..1d180bc --- /dev/null +++ b/repo/system/snappy.xibuild @@ -0,0 +1,30 @@ +#!/bin/sh + +NAME="snappy" +DESC="Fast compression and decompression library" + +MAKEDEPS="cmake" +DEPS="musl " + +PKG_VER=1.1.9 +SOURCE="https://github.com/google/snappy/archive/$PKG_VER.tar.gz" +ADDITIONAL="rtti.patch fix-inline.patch cmakelists.patch " + +prepare () { + apply_patches +} + +build () { + cmake -B build -G Ninja \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=/usr/lib \ + -DBUILD_SHARED_LIBS=ON \ + -DBUILD_STATIC_LIBS=OFF \ + -DSNAPPY_BUILD_BENCHMARKS=OFF + + cmake --build build +} + +package () { + DESTDIR="$PKG_DEST" cmake --install build +} diff --git a/repo/system/startup-notification.xibuild b/repo/system/startup-notification.xibuild new file mode 100644 index 0000000..08d7a85 --- /dev/null +++ b/repo/system/startup-notification.xibuild @@ -0,0 +1,23 @@ +#!/bin/sh + +NAME="startup-notification" +DESC="Monitor and display application startup" + +MAKEDEPS="make " +DEPS="libx11 libxcb musl xcb-util " + +PKG_VER=0.12 +SOURCE="https://www.freedesktop.org/software/startup-notification/releases/startup-notification-$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/ubase.xibuild b/repo/system/ubase.xibuild index 30a7de3..0fd1258 100644 --- a/repo/system/ubase.xibuild +++ b/repo/system/ubase.xibuild @@ -1,6 +1,6 @@ #!/bin/sh -MAKEDEPS="make " +MAKEDEPS="make findutils sed" DEPS="musl" SOURCE=https://git.suckless.org/ubase diff --git a/repo/util/procps-ng.xibuild b/repo/util/procps-ng.xibuild index 27d35da..234892e 100644 --- a/repo/util/procps-ng.xibuild +++ b/repo/util/procps-ng.xibuild @@ -3,16 +3,16 @@ MAKEDEPS="make utmps" DEPS="ncurses" -PKG_VER=3.3.17 +PKG_VER=4.0.0 SOURCE=https://sourceforge.net/projects/procps-ng/files/Production/procps-ng-$PKG_VER.tar.xz DESC="Utilities for monitoring your system and its processes" ADDITIONAL=" - https://raw.githubusercontent.com/dslm4515/Musl-LFS/master/patches/procps-mlfs/use_utmpx.patch + use_utmpx.patch " prepare () { - patch -Np1 -i use_utmpx.patch + apply_patches sed -i '1i#include <langinfo.h>' proc/escape.c } @@ -21,6 +21,7 @@ build () { ./configure --prefix=/usr \ --docdir=/usr/share/doc/procps-ng-$PKG_VER \ --disable-static \ + --disable-w \ --disable-kill make } diff --git a/repo/x11/dmenu.xibuild b/repo/x11/dmenu.xibuild new file mode 100644 index 0000000..0356f4e --- /dev/null +++ b/repo/x11/dmenu.xibuild @@ -0,0 +1,27 @@ +#!/bin/sh + +NAME="dmenu" +DESC="Dynamic menu for X" + +MAKEDEPS="make" +DEPS="fontconfig libx11 libxft libxinerama musl" + +PKG_VER=5.1 +SOURCE="https://dl.suckless.org/tools/dmenu-$PKG_VER.tar.gz" + +prepare () { + sed -i -e '/CFLAGS/{s/-Os//;s/=/+=/}' \ + -e '/LDFLAGS/{s/=/+=/}' \ + config.mk +} + +build () { + make PREFIX=/usr \ + X11INC=/usr/include/X11 \ + X11LIB=/usr/lib/X11 \ + FREETYPEINC=/usr/include/freetype2 +} + +package () { + make PREFIX=/usr DESTDIR=$PKG_DEST install +} diff --git a/repo/x11/gdk-pixbuf.xibuild b/repo/x11/gdk-pixbuf.xibuild new file mode 100644 index 0000000..66d5a0f --- /dev/null +++ b/repo/x11/gdk-pixbuf.xibuild @@ -0,0 +1,24 @@ +#!/bin/sh + +NAME="gdk-pixbuf" +DESC="GTK+ image loading library" + +MAKEDEPS="meson ninja " +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" + +build () { + mkdir build && + cd build && + meson --prefix=/usr \ + -Dinstalled_tests=false \ + -Dpng=disabled \ + .. && + ninja +} + +package () { + DESTDIR=$PKG_DEST ninja install +} diff --git a/repo/x11/graphite.xibuild b/repo/x11/graphite.xibuild new file mode 100644 index 0000000..5583086 --- /dev/null +++ b/repo/x11/graphite.xibuild @@ -0,0 +1,26 @@ +#!/bin/sh + +NAME="graphite" +DESC="reimplementation of the SIL Graphite text processing engine" + +MAKEDEPS="cmake freetype2" +DEPS="musl " + +PKG_VER=1.3.14 +SOURCE="https://github.com/silnrsi/graphite/archive/$PKG_VER.tar.gz" +ADDITIONAL="cmake.patch " + +build () { + cmake -B build -G Ninja \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=/usr/lib \ + -DBUILD_SHARED_LIBS=True \ + -DCMAKE_BUILD_TYPE=MinSizeRel \ + -DGRAPHITE2_COMPARE_RENDERER=OFF \ + -DGRAPHITE2_NFILEFACE=ON + cmake --build build +} + +package () { + DESTDIR="$PKG_DEST" cmake --install build +} diff --git a/repo/x11/harfbuzz.xibuild b/repo/x11/harfbuzz.xibuild new file mode 100644 index 0000000..7164985 --- /dev/null +++ b/repo/x11/harfbuzz.xibuild @@ -0,0 +1,29 @@ +#!/bin/sh + +NAME="harfbuzz" +DESC="Text shaping library" + +MAKEDEPS="meson ninja " +DEPS="freetype2 glib graphite musl " + +PKG_VER=4.2.0 +SOURCE="https://github.com/harfbuzz/harfbuzz/archive/$PKG_VER.tar.gz" + +build () { + mkdir build && + cd build && + meson --prefix=/usr \ + -Dglib=enabled \ + -Dgobject=enabled \ + -Dgraphite=enabled \ + -Dicu=enabled \ + -Dfreetype=enabled \ + -Dcairo=enabled \ + -Ddocs=enabled \ + .. && + ninja +} + +package () { + DESTDIR=$PKG_DEST ninja install +} diff --git a/repo/x11/libxkbcommon.xibuild b/repo/x11/libxkbcommon.xibuild new file mode 100644 index 0000000..2675370 --- /dev/null +++ b/repo/x11/libxkbcommon.xibuild @@ -0,0 +1,28 @@ +#!/bin/sh + +NAME="libxkbcommon" +DESC="keyboard handling library" + +MAKEDEPS="meson ninja " +DEPS="libxml2 +musl +xkeyboardconfig" + +PKG_VER=1.4.0 +SOURCE="https://github.com/xkbcommon/libxkbcommon/archive/xkbcommon-$PKG_VER.tar.gz" + +build () { + mkdir build && + cd build && + meson --prefix=/usr \ + -Denable-wayland=true \ + -Denable-docs=false \ + -Denable-x11=true \ + -Ddefault_library=both \ + .. && + ninja +} + +package () { + DESTDIR=$PKG_DEST ninja install +} diff --git a/repo/x11/pango.xibuild b/repo/x11/pango.xibuild new file mode 100644 index 0000000..2515487 --- /dev/null +++ b/repo/x11/pango.xibuild @@ -0,0 +1,26 @@ +#!/bin/sh + +NAME="pango" +DESC="library for layout and rendering of text" + +MAKEDEPS="meson ninja" +DEPS="sbase cairo fontconfig freetype2 glib libx11 libxft libxrender musl" + +PKG_VER=1.50.5 +SOURCE="https://download.gnome.org/sources/pango/${PKG_VER%.*}/pango-$PKG_VER.tar.xz" +ADDITIONAL="disable-broken-test.patch " + +prepare () { + apply_patches +} + +build () { + mkdir build && + cd build && + meson --prefix=/usr .. && + ninja +} + +package () { + DESTDIR=$PKG_DEST ninja install +} diff --git a/repo/x11/picom.xibuild b/repo/x11/picom.xibuild index f8d8cf6..2c3eb28 100644 --- a/repo/x11/picom.xibuild +++ b/repo/x11/picom.xibuild @@ -1,9 +1,6 @@ #!/bin/sh -MAKEDEPS="libx11 libxcomposite libxinerama libxdamage - libconfig pcre libxrandr dbus libdrm mesa meson - libev libxdg-basedir pixman xcb-util-renderutil - xcb-util-image asciidoc uthash" +MAKEDEPS="libx11 libxcomposite libxinerama libxdamage libconfig pcre libxrandr dbus libdrm mesa meson libev libxdg-basedir pixman xcb-util-renderutil xcb-util-image asciidoc uthash" DEPS="dbus libconfig libev libx11 libxcb mesa-gl musl pcre pixman xcb-util-image xcb-util-renderutil" PKG_VER=9.1 @@ -19,9 +16,9 @@ build () { } package () { - DESTDIR=$PKG_DEST ninmake ja install + DESTDIR=$PKG_DEST ninja install mkdir -p "$PKG_DEST/usr/share/doc/picom" + cd .. install -m644 README* "$PKG_DEST/usr/share/doc/picom/" install -D -m644 "picom.sample.conf" "$PKG_DEST/etc/xdg/picom.conf.example" - } diff --git a/repo/x11/rofi.xibuild b/repo/x11/rofi.xibuild new file mode 100644 index 0000000..e377909 --- /dev/null +++ b/repo/x11/rofi.xibuild @@ -0,0 +1,40 @@ +#!/bin/sh + +NAME="rofi" +DESC="Window switcher, application launcher and dmenu replacement" + +MAKEDEPS="meson ninja " +DEPS="gdk-pixbuf cairo glib libxcb libxkbcommon libxkbfile musl xcb-util xcb-util-cursor xcb-util-wm pango startup-notification" + +PKG_VER=1.7.3 +SOURCE="https://github.com/davatorium/rofi/releases/download/$PKG_VER/rofi-$PKG_VER.tar.gz" + +libnkutils=d08fa898d71da4c11653284968ec14384dd70b6a +libgwater=555fa6df92434c1c3c7548b5a583b1d8ec3fabb3 +ADDITIONAL=" +scrollbar-test.patch +rofi-sensible-terminal-use-sh.patch +https://github.com/sardemff7/libgwater/archive/$libgwater.tar.gz +https://github.com/sardemff7/libnkutils/archive/$libnkutils.tar.gz +" + +prepare () { + apply_patches + tar xf $libgwater.tar.gz + tar xf $libnkutils.tar.gz + rm -rf subprojects/libnkutils subprojects/libgwater + mv libnkutils-$libnkutils subprojects/libnkutils + mv libgwater-$libgwater subprojects/libgwater +} + +build () { + mkdir build && + cd build && + meson --prefix=/usr .. && + ninja +} + +package () { + DESTDIR=$PKG_DEST ninja install + rm -rf $PKG_DEST/usr/share/rofi/themes/iggy.jpg +} diff --git a/repo/x11/xdg-utils.xibuild b/repo/x11/xdg-utils.xibuild new file mode 100644 index 0000000..d3fb5ee --- /dev/null +++ b/repo/x11/xdg-utils.xibuild @@ -0,0 +1,24 @@ +#!/bin/sh + +NAME="xdg-utils" +DESC="Basic desktop integration functions" + +MAKEDEPS="make " +DEPS="file xprop xset " + +PKG_VER=1.1.3 +SOURCE="https://portland.freedesktop.org/download/xdg-utils-$PKG_VER.tar.gz" +ADDITIONAL="xdg-screensaver-mv-T.patch " + +build () { + ./configure \ + --prefix=/usr + --bindir=/usr/bin \ + --sysconfdir=/etc \ + --disable-static + make +} + +package () { + make DESTDIR=$PKG_DEST install +} |