summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.rootbld-repositories4
-rw-r--r--lemonbar/APKBUILD26
-rw-r--r--mkinitfs/APKBUILD43
-rw-r--r--mkinitfs/mkinitfs-mdadm_fix.patch40
-rw-r--r--mkinitfs/mkinitfs.post-install8
-rw-r--r--mkinitfs/mkinitfs.post-upgrade8
-rw-r--r--mkinitfs/mkinitfs.pre-upgrade13
-rw-r--r--mkinitfs/mkinitfs.trigger37
-rw-r--r--sutils/APKBUILD28
-rw-r--r--system76-acpi-src/APKBUILD39
-rw-r--r--tabbed/APKBUILD33
-rw-r--r--tabbed/xembed.135
-rw-r--r--txtw/APKBUILD28
-rw-r--r--uemacs/APKBUILD35
-rw-r--r--xlsw/APKBUILD26
-rw-r--r--xwinfo/APKBUILD29
16 files changed, 432 insertions, 0 deletions
diff --git a/.rootbld-repositories b/.rootbld-repositories
new file mode 100644
index 0000000..9af2f61
--- /dev/null
+++ b/.rootbld-repositories
@@ -0,0 +1,4 @@
+$mirror/$version/main
+$mirror/$version/community
+$mirror/$version/testing
+$mirror/$version/local
diff --git a/lemonbar/APKBUILD b/lemonbar/APKBUILD
new file mode 100644
index 0000000..807f9f9
--- /dev/null
+++ b/lemonbar/APKBUILD
@@ -0,0 +1,26 @@
+# Contributor: Camille Scholtz <onodera@openmailbox.org>
+# Maintainer: Camille Scholtz <onodera@openmailbox.org>
+pkgname=lemonbar
+pkgver=1.4
+pkgrel=1
+pkgdesc="featherlight, lemon-scented, bar based on xcb"
+url="https://github.com/Lemonboy/bar"
+arch="all"
+license="MIT"
+depends="libxcb"
+makedepends="libxcb-dev perl"
+subpackages="$pkgname-doc"
+source="$pkgname-$pkgver.tar.gz::https://github.com/LemonBoy/bar/archive/v$pkgver.tar.gz"
+
+builddir="$srcdir"/bar-"$pkgver"
+build() {
+ make
+}
+
+package() {
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="
+2e516298854ad4ebf3dd4b67e933f0dca46a23cfb4146ef1737f26d937c582d0f9ce93b62ce094a7e456d55bd6273168f664c284c48c9637c8ed08f032799b14 lemonbar-1.4.tar.gz
+"
diff --git a/mkinitfs/APKBUILD b/mkinitfs/APKBUILD
new file mode 100644
index 0000000..37131b0
--- /dev/null
+++ b/mkinitfs/APKBUILD
@@ -0,0 +1,43 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=mkinitfs
+pkgver=3.7.0
+# shellcheck disable=SC2034 # used for git versions, keep around for next time
+_ver=${pkgver%_git*}
+pkgrel=4
+pkgdesc="Tool to generate initramfs images for Alpine"
+url="https://gitlab.alpinelinux.org/alpine/mkinitfs"
+arch="all"
+license="GPL-2.0-only"
+# currently we do not ship any testsuite
+options="!check"
+makedepends_host="busybox kmod-dev util-linux-dev cryptsetup-dev linux-headers"
+makedepends="$makedepends_host"
+depends="
+ apk-tools>=2.9.1
+ busybox-binsh
+ busybox>=1.28.2-r1
+ kmod
+ lddtree>=1.25
+ mdev-conf
+ "
+subpackages="$pkgname-doc"
+install="$pkgname.pre-upgrade $pkgname.post-install $pkgname.post-upgrade"
+triggers="$pkgname.trigger=/usr/share/kernel/*"
+source="https://gitlab.alpinelinux.org/alpine/mkinitfs/-/archive/$pkgver/mkinitfs-$pkgver.tar.gz
+ mkinitfs-mdadm_fix.patch"
+
+provides="initramfs-generator"
+provider_priority=900 # highest
+
+build() {
+ make VERSION=$pkgver-r$pkgrel
+}
+
+package() {
+ make install DESTDIR="$pkgdir"
+}
+
+sha512sums="
+72d31cf5554a3fd3eb48bff79a2c81694f208e0bb727a997f875fdf847b90d028973dbbf1c71d1a7174806de5aab5e21810d852c0ef5f04e46c96367b751d9f4 mkinitfs-3.7.0.tar.gz
+09d1a33499ee268528860d872a3a3ade319659ccc0df03cda3e738ca23399e45c903ff8aebb8542de4881fa6930db03b4cc6748715cb5f32967c9c9db6f5111e mkinitfs-mdadm_fix.patch
+"
diff --git a/mkinitfs/mkinitfs-mdadm_fix.patch b/mkinitfs/mkinitfs-mdadm_fix.patch
new file mode 100644
index 0000000..2981d7f
--- /dev/null
+++ b/mkinitfs/mkinitfs-mdadm_fix.patch
@@ -0,0 +1,40 @@
+diff --git a/nlplug-findfs/nlplug-findfs.c b/nlplug-findfs/nlplug-findfs.c
+index 1cb48d2..7b0b940 100644
+--- a/nlplug-findfs/nlplug-findfs.c
++++ b/nlplug-findfs/nlplug-findfs.c
+@@ -479,9 +479,9 @@ static int load_kmod(const char *modalias, char *driver, size_t len)
+ return count;
+ }
+
+-static void start_mdadm(char *devnode)
++static void start_mdadm(char *devnode, const char *searchdev)
+ {
+- char *mdadm_argv[] = {
++ char *root_mdadm_argv[] = {
+ MDADM_PATH,
+ "--incremental",
+ "--run",
+@@ -489,6 +489,14 @@ static void start_mdadm(char *devnode)
+ devnode,
+ NULL
+ };
++ char *nonroot_mdadm_argv[] = {
++ MDADM_PATH,
++ "--incremental",
++ "--quiet",
++ devnode,
++ NULL
++ };
++ char **mdadm_argv = (strcmp(devnode, searchdev) == 0) ? root_mdadm_argv : nonroot_mdadm_argv;
+ if (use_mdadm)
+ spawn_command(&spawnmgr, mdadm_argv, 0);
+ }
+@@ -1006,7 +1014,7 @@ static int searchdev(struct uevent *ev, const char *searchdev, int scanbootmedia
+
+ if (!rc && type) {
+ if (strcmp("linux_raid_member", type) == 0) {
+- start_mdadm(ev->devnode);
++ start_mdadm(ev->devnode, searchdev);
+ } else if (strcmp("LVM2_member", type) == 0) {
+ start_lvm2(ev->devnode);
+ } else if (strcmp("zfs_member", type) == 0) {
diff --git a/mkinitfs/mkinitfs.post-install b/mkinitfs/mkinitfs.post-install
new file mode 100644
index 0000000..a2a404b
--- /dev/null
+++ b/mkinitfs/mkinitfs.post-install
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+# safety. if nlplug-findfs is missing in the initramfs image we may end up
+# with an unbootable system.
+
+if ! grep -q -w /sbin/nlplug-findfs /etc/mkinitfs/features.d/base.files; then
+ echo "/sbin/nlplug-findfs" >> /etc/mkinitfs/features.d/base.files
+fi
diff --git a/mkinitfs/mkinitfs.post-upgrade b/mkinitfs/mkinitfs.post-upgrade
new file mode 100644
index 0000000..a2a404b
--- /dev/null
+++ b/mkinitfs/mkinitfs.post-upgrade
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+# safety. if nlplug-findfs is missing in the initramfs image we may end up
+# with an unbootable system.
+
+if ! grep -q -w /sbin/nlplug-findfs /etc/mkinitfs/features.d/base.files; then
+ echo "/sbin/nlplug-findfs" >> /etc/mkinitfs/features.d/base.files
+fi
diff --git a/mkinitfs/mkinitfs.pre-upgrade b/mkinitfs/mkinitfs.pre-upgrade
new file mode 100644
index 0000000..0ece527
--- /dev/null
+++ b/mkinitfs/mkinitfs.pre-upgrade
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+mkdir -p /etc/mkinitfs/features.d
+for i in files modules; do
+ for j in /etc/mkinitfs/$i.d/*; do
+ [ -e "$j" ] || continue
+ case "$j" in
+ *.apk-new) continue;;
+ esac
+ mv $j /etc/mkinitfs/features.d/${j##*/}.$i
+ done
+done
+exit 0
diff --git a/mkinitfs/mkinitfs.trigger b/mkinitfs/mkinitfs.trigger
new file mode 100644
index 0000000..35b13c0
--- /dev/null
+++ b/mkinitfs/mkinitfs.trigger
@@ -0,0 +1,37 @@
+#!/bin/sh
+
+CONFIG='/etc/mkinitfs/mkinitfs.conf'
+if [ -f "$CONFIG" ]; then
+ case "$(. "$CONFIG" >/dev/null; printf %s "$disable_trigger")" in
+ yes | YES | true | TRUE | 1) exit 0;;
+ esac
+fi
+
+for i in "$@"; do
+ # get last element in path
+ flavor=${i##*/}
+ if ! [ -f "$i"/kernel.release ]; then
+ # kernel was uninstalled
+ rm -f $( readlink -f /boot/initramfs-$flavor ) \
+ /boot/initramfs-$flavor /boot/vmlinuz-$flavor \
+ /boot/$flavor /boot/$flavor.gz /$flavor /$flavor.gz
+ continue
+ fi
+ abi_release=$(cat "$i"/kernel.release)
+ initfs=initramfs-$flavor
+ mkinitfs -o /boot/$initfs $abi_release || {
+ echo " mkinitfs failed!" >2
+ echo " your system may not be bootable" >2
+ exit 1
+ }
+done
+
+# extlinux will use path relative partition, so if /boot is on a
+# separate partition we want /boot/<kernel> resolve to /<kernel>
+if ! [ -e /boot/boot ]; then
+ ln -sf . /boot/boot 2>/dev/null # silence error in case of FAT
+fi
+
+# sync only the filesystem on /boot as that is where we are writing the initfs.
+sync -f /boot
+exit 0
diff --git a/sutils/APKBUILD b/sutils/APKBUILD
new file mode 100644
index 0000000..756bd61
--- /dev/null
+++ b/sutils/APKBUILD
@@ -0,0 +1,28 @@
+# Contributor: John Vogel <jvogel4@stny.rr.com>
+# Maintainer: John Vogel <jvogel4@stny.rr.com>
+pkgname=sutils
+pkgver=0.2
+pkgrel=0
+pkgdesc="Small command-line utilities"
+url="https://github.com/baskerville/sutils/"
+arch="all"
+license="Unlicense"
+depends=""
+makedepends="alsa-lib-dev linux-headers"
+install=""
+subpackages=""
+options="!check"
+source="https://github.com/baskerville/sutils/archive/$pkgver/sutils-$pkgver.tar.gz"
+builddir="$srcdir/sutils-$pkgver"
+
+build() {
+ make
+}
+
+package() {
+ make DESTDIR="$pkgdir" PREFIX=/usr install
+}
+
+sha512sums="
+35acb21216868ea9626e23b7b6faf0a6837d84a1ea6ca4b8ea57e9cb7b965e58d173b981f4bb0529f6eb08dd2fb2aa91a96623b5acaa49f55cd27c6f72ecd791 sutils-0.2.tar.gz
+"
diff --git a/system76-acpi-src/APKBUILD b/system76-acpi-src/APKBUILD
new file mode 100644
index 0000000..c399489
--- /dev/null
+++ b/system76-acpi-src/APKBUILD
@@ -0,0 +1,39 @@
+# Contributor: John Vogel <jvogel4@stny.rr.com>
+# Maintainer: John Vogel <jvogel4@stny.rr.com>
+pkgname=system76-acpi-src
+_commit=ed0112437f85665b6473dbeb1229b4850c8635ef
+pkgver=1.0.2_git20230306
+pkgrel=0
+pkgdesc="System76 ACPI Driver source (AKMS)"
+url="https://github.com/pop-os/system76-acpi-dkms"
+arch="noarch !aarch64 !armhf !armv7 !ppc64le !riscv64 !x86"
+license="GPL-2.0-only"
+depends="akms"
+source="system76-acpi-dkms-$_commit.tar.gz::https://github.com/pop-os/system76-acpi-dkms/archive/$_commit/$_commit.tar.gz"
+builddir="$srcdir/system76-acpi-dkms-$_commit"
+options="!check" # no tests
+
+package() {
+ mkdir -p "$pkgdir"/etc/udev/hwdb.d
+ cp "$builddir"/lib/udev/hwdb.d/99-system76-acpi-dkms.hwdb \
+ "$pkgdir"/etc/udev/hwdb.d/99-system76-acpi.hwdb
+ sed -i 's,^\(KERNEL_DIR = \).*,\1/lib/modules/${kernel_version}/build,' $builddir/Makefile
+ mkdir -p "$pkgdir"/usr/src
+ cp -r "$builddir" "$pkgdir"/usr/src/system76_acpi-$pkgver
+
+ cat > "$pkgdir"/usr/src/system76_acpi-$pkgver/AKMBUILD <<EOF
+modname=system76_acpi
+modver=$pkgver-r$pkgrel
+makedepends="linux-headers"
+built_modules="system76_acpi.ko"
+
+build() {
+ cp -r "\$srcdir"/* .
+ kernel_version=\$kernel_ver make all \$MAKEFLAGS
+}
+EOF
+}
+
+sha512sums="
+891191523c7c81e8966a7ab38bdbdb822f4aaaeeb16bc9ae007327fd9fbcf223404a2067478c13231d5e6a63d114c81c3c0e3b5cb6bce25e6a9f88ad438650a4 system76-acpi-dkms-ed0112437f85665b6473dbeb1229b4850c8635ef.tar.gz
+"
diff --git a/tabbed/APKBUILD b/tabbed/APKBUILD
new file mode 100644
index 0000000..a93e096
--- /dev/null
+++ b/tabbed/APKBUILD
@@ -0,0 +1,33 @@
+# Contributor: John Vogel <jvogel4@stny.rr.com>
+# Maintainer: John Vogel <jvogel4@stny.rr.com>
+pkgname=tabbed
+pkgver=0.7
+pkgrel=0
+pkgdesc="generic tabbed interface"
+url="https://tools.suckless.org/tabbed/"
+arch="all"
+license="MITNFA"
+options="!check" # no tests
+makedepends="fontconfig-dev libx11-dev libxft-dev"
+subpackages="$pkgname-doc"
+source="https://dl.suckless.org/tools/tabbed-$pkgver.tar.gz
+ xembed.1"
+
+prepare() {
+ default_prepare
+ cp "$srcdir"/xembed.1 "$builddir"
+}
+
+build() {
+ make
+}
+
+package() {
+ make DESTDIR="$pkgdir" PREFIX=/usr install
+ install -D -t "$pkgdir"/usr/share/doc/tabbed LICENSE README
+}
+
+sha512sums="
+770420935fd152e10bef59e29eeb8125ee181993691c6c5f03baf311bd685c2b5f0ded13854b3715cc60d0f1ae99eceacd3e6cb7e4008c34917ae55c38b436a7 tabbed-0.7.tar.gz
+7f5e8aa41e476a154aec9c25608032ffc6a9eb3198af40dbcb764b22297d260bb2c08405eb0464d7f551ed2032605ca79421b5434a051299f672efd4f8f38e75 xembed.1
+"
diff --git a/tabbed/xembed.1 b/tabbed/xembed.1
new file mode 100644
index 0000000..5b0c28c
--- /dev/null
+++ b/tabbed/xembed.1
@@ -0,0 +1,35 @@
+.TH XEMBED 1 tabbed\-VERSION
+.SH NAME
+xembed \- XEmbed foreground process
+.SH SYNOPSIS
+.B xembed
+.I flag command
+.RI [ "argument ..." ]
+.SH DESCRIPTION
+If the environment variable XEMBED is set, and
+.B xembed
+is in the foreground of its controlling tty, it will execute
+.IP
+command flag $XEMBED [argument ...]
+.LP
+Otherwise it will execute
+.IP
+command [argument ...]
+.LP
+.SH EXAMPLE
+In a terminal emulator within a
+.B tabbed
+session, the shell alias
+.IP
+$ alias surf='xembed -e surf'
+.LP
+will cause `surf' to open in a new tab, unless it is run in the background,
+i.e. `surf &', in which case it will instead open in a new window.
+.SH AUTHORS
+See the LICENSE file for the authors.
+.SH LICENSE
+See the LICENSE file for the terms of redistribution.
+.SH SEE ALSO
+.BR tabbed (1)
+.SH BUGS
+Please report them.
diff --git a/txtw/APKBUILD b/txtw/APKBUILD
new file mode 100644
index 0000000..6966173
--- /dev/null
+++ b/txtw/APKBUILD
@@ -0,0 +1,28 @@
+# Contributor: John Vogel <jvogel4@stny.rr.com>
+# Maintainer: John Vogel <jvogel4@stny.rr.com>
+pkgname=txtw
+pkgver=0.4
+pkgrel=0
+pkgdesc="Return the pixel width for the given strings for the given font"
+url="https://github.com/baskerville/txtw/"
+arch="all"
+license="Unlicense"
+depends=""
+makedepends="cairo-dev"
+options="!check"
+install=""
+subpackages="$pkgname-doc"
+source="https://github.com/baskerville/txtw/archive/$pkgver/txtw-$pkgver.tar.gz"
+builddir="$srcdir/txtw-$pkgver"
+
+build() {
+ make
+}
+
+package() {
+ make DESTDIR="$pkgdir" PREFIX=/usr install
+}
+
+sha512sums="
+1f8aca56455172e8e03aab6bf1eccd687f3ef34fcf0b6b2e9dddd9127c946f4d837d6bca58422ff0a956ea09d19fb050ca92a1ba035ce29dc0035ee23ea85d3c txtw-0.4.tar.gz
+"
diff --git a/uemacs/APKBUILD b/uemacs/APKBUILD
new file mode 100644
index 0000000..d2663d1
--- /dev/null
+++ b/uemacs/APKBUILD
@@ -0,0 +1,35 @@
+# Contributor: John Vogel <jvogel4@stny.rr.com>
+# Maintainer: John Vogel <jvogel4@stny.rr.com>
+pkgname=uemacs
+pkgver=4.0.15_git20220719
+_commit=1cdcf9df88144049750116e36fe20c8c39fa2517
+pkgrel=0
+pkgdesc="uEmacs/PK"
+url="https://git.kernel.org/pub/scm/editors/uemacs/uemacs.git"
+arch="all"
+license="custom"
+makedepends="ncurses-dev"
+subpackages="$pkgname-doc"
+source="uemacs-${pkgver}.tar.gz::https://git.kernel.org/pub/scm/editors/uemacs/uemacs.git/snapshot/uemacs-$_commit.tar.gz"
+builddir="$srcdir/uemacs-$_commit"
+options="!check"
+
+prepare() {
+ default_prepare
+ sed -e '/global/s/^.*$/\t"\/usr\/share\/uemacs\/",/' -i epath.h
+}
+
+build() {
+ make
+}
+
+package() {
+ mkdir -p $pkgdir/usr/bin $pkgdir/usr/share/uemacs $pkgdir/usr/share/doc/uemacs
+ install -m 0755 em $pkgdir/usr/bin/uemacs
+ install -m 0644 emacs.hlp emacs.rc -t $pkgdir/usr/share/uemacs
+ install -m 0644 README emacs.ps -t $pkgdir/usr/share/doc/uemacs
+}
+
+sha512sums="
+ef5b847a4177690a497e2865cf438cdd8cc65fa9b107afac1cb8329b5a91e868e10cc4aae61de0a9063de9062b2cca1aa8c2a57d4aab2c173622e38c55e57621 uemacs-4.0.15_git20220719.tar.gz
+"
diff --git a/xlsw/APKBUILD b/xlsw/APKBUILD
new file mode 100644
index 0000000..510a54f
--- /dev/null
+++ b/xlsw/APKBUILD
@@ -0,0 +1,26 @@
+# Contributor: John Vogel <jvogel4@stny.rr.com>
+# Maintainer: John Vogel <jvogel4@stny.rr.com>
+pkgname=xlsw
+pkgver=0.2.3
+pkgrel=0
+pkgdesc="List the X window tree contents"
+url="https://github.com/baskerville/xlsw/"
+arch="all"
+license="Unlicense"
+makedepends="libxcb-dev xcb-util-dev xcb-util-wm-dev"
+options="!check"
+subpackages=""
+source="https://github.com/baskerville/xlsw/archive/$pkgver/xlsw-$pkgver.tar.gz"
+builddir="$srcdir/xlsw-$pkgver"
+
+build() {
+ make
+}
+
+package() {
+ make DESTDIR="$pkgdir" PREFIX=/usr install
+}
+
+sha512sums="
+f9976df9715b091ed82a99252c390196edbf306852ffa20a12ba63c35efdabf63593a3fad7c672a6ed0e9f447ff6c9b076f73d7013bf4c8c454481f117d8925f xlsw-0.2.3.tar.gz
+"
diff --git a/xwinfo/APKBUILD b/xwinfo/APKBUILD
new file mode 100644
index 0000000..384e191
--- /dev/null
+++ b/xwinfo/APKBUILD
@@ -0,0 +1,29 @@
+# Contributor: John Vogel <jvogel4@stny.rr.com>
+# Maintainer: John Vogel <jvogel4@stny.rr.com>
+pkgname=xwinfo
+commit=6cd58a94086e39ef964a90fc2ca207ae34f1373e
+pkgver=0.1_git20160412
+pkgrel=0
+pkgdesc="Print window informations"
+url="https://github.com/baskerville/xwinfo/"
+arch="all"
+license="Unlicense"
+depends="xcb-util-wm"
+makedepends="xcb-util-wm-dev"
+options="!check"
+install=""
+subpackages="$pkgname-doc"
+source="$pkgname-$commit.tar.gz::https://github.com/baskerville/xwinfo/archive/$commit/$commit.tar.gz"
+builddir="$srcdir/xwinfo-6cd58a94086e39ef964a90fc2ca207ae34f1373e"
+
+build() {
+ make
+}
+
+package() {
+ make DESTDIR="$pkgdir" PREFIX="/usr" install
+}
+
+sha512sums="
+ea49c906ae18896b17af083b8e7a78ffe77791dbd3039e42ce11b2bef8ffb5c1d123aa84d7eb453a50fc0bedbd8e6226898acbdb47107dea3dbad0197fbf3a46 xwinfo-6cd58a94086e39ef964a90fc2ca207ae34f1373e.tar.gz
+"