summaryrefslogtreecommitdiff
path: root/repo/system
diff options
context:
space:
mode:
Diffstat (limited to 'repo/system')
-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
17 files changed, 413 insertions, 7 deletions
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
+
+}