~xdavidwu/apkbuilds

4cde4f2b05d5b0d3eaf2036ef798b3a72877a659 — xdavidwu 2 years ago
import from gitlab
A  => .gitignore +1 -0
@@ 1,1 @@
src

A  => abduco/APKBUILD +35 -0
@@ 1,35 @@
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Drew DeVault <sir@cmpwn.com>
# Maintainer: xdavidwu <xdavidwuph@gmail.com>
pkgname=abduco
pkgver=0.6_git20200430
pkgrel=0
pkgdesc="Session management in a clean and simple way"
url="https://www.brain-dump.org/projects/abduco/"
arch="all"
license="ISC"
subpackages="$pkgname-doc"
_commit=8c32909a159aaa9484c82b71f05b7a73321eb491
source="abduco-$_commit.tar.gz::https://git.sr.ht/~martanne/abduco/archive/$_commit.tar.gz
	fix-tests.patch"
builddir="$srcdir/$pkgname-$_commit"
options="!check" # works locally but not on CI?

build() {
	make
}

check() {
	./testsuite.sh
}

package() {
	make PREFIX=/usr DESTDIR="$pkgdir" install
	install -Dm644 README.md \
		"$pkgdir"/usr/share/doc/$pkgname/README.md
}

sha512sums="
dec2ecc9d185d617f89371a7a8578398e97ad3cbf245b9304579c638ee37e6614ecd0ee428da6b070edb31078f4646f19160c4c22722e1401289bdc70813e6c3  abduco-8c32909a159aaa9484c82b71f05b7a73321eb491.tar.gz
0d9e5be04bfd9d0826c54d7a8ad8435dcd3559efd7eabca11ebab86f20acabd4d97e1c1fb81e895865e73034d4a2e278f409236f301a6d71ac907af66ced046b  fix-tests.patch
"

A  => abduco/fix-tests.patch +15 -0
@@ 1,15 @@
Without this change pgrep seems to return the PID of the abduco process
spawned in the previous line because it may not be removed yet. Removing
the pgrep invocation is not the best solution but good enough for now.

diff -upr abduco-0.6.orig/testsuite.sh abduco-0.6/testsuite.sh
--- abduco-0.6.orig/testsuite.sh	2019-02-14 11:33:19.521290879 +0100
+++ abduco-0.6/testsuite.sh	2019-02-14 11:33:29.361298623 +0100
@@ -55,7 +55,6 @@ expected_abduco_detached_output() {
 
 check_environment() {
 	[ "`$ABDUCO | wc -l`" -gt 1 ] && echo Abduco session exists && exit 1;
-	pgrep abduco && echo Abduco process exists && exit 1;
 	return 0;
 }
 

A  => dvtm/APKBUILD +32 -0
@@ 1,32 @@
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Bartłomiej Piotrowski <bpiotrowski@alpinelinux.org>
# Contributor: 7heo <7heo@mail.com>
# Maintainer: xdavidwu <xdavidwuph@gmail.com>
pkgname=dvtm
pkgver=0.15_git20210310
pkgrel=0
pkgdesc="Dynamic virtual terminal manager"
arch="all"
url="https://www.brain-dump.org/projects/dvtm/"
license="MIT"
depends="ncurses-terminfo"
makedepends="ncurses-dev ncurses" # we need ncurses for 'tic'
subpackages="$pkgname-doc"
_commit=7bcf43f8dbd5c4a67ec573a1248114caa75fa3c2
source="dvtm-$_commit.tar.gz::https://git.sr.ht/~martanne/dvtm/archive/$_commit.tar.gz"
builddir="$srcdir/$pkgname-$_commit"

build() {
	make
}

package() {
	make PREFIX=/usr DESTDIR="$pkgdir" install

	# Already provided by ncurses-terminfo
	rm -rf "${pkgdir}/usr/share/terminfo/"
}

sha512sums="
56b768ef96f4952fbeb10adaf55afb795293c0b60a67f361cdd2759d9fe0c231afd2fb4c6c6d002a77841cddabf7c27bb557999498fe261f888dc94c02c8f1fd  dvtm-7bcf43f8dbd5c4a67ec573a1248114caa75fa3c2.tar.gz
"

A  => i3status-pulse/APKBUILD +31 -0
@@ 1,31 @@
# Contributor: k0r10n <k0r10n.dev@gmail.com>
# Contributor: Martijn Braam <martijn@brixit.nl>
# Maintainer: xdavidwu <xdavidwuph@gmail.com>
pkgname=i3status-pulse
pkgver=2.14
pkgrel=0
pkgdesc="Generates status bar for dzen2, xmobar or similar"
url="https://i3.zekjur.net/i3status"
arch="all"
license="BSD-3-Clause"
options="!check" # No test suite
makedepends="alsa-lib-dev asciidoc meson confuse-dev libnl3-dev linux-headers yajl-dev xmlto pulseaudio-dev"
subpackages="$pkgname-doc"
source="https://i3wm.org/i3status/i3status-$pkgver.tar.xz"
builddir="$srcdir/i3status-$pkgver"

build() {
	abuild-meson \
		-Dpulseaudio=true \
		-Dmans=true \
		. output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
10a1235cc314f5fc4dde4e1369a30f49118c95271f636c5803caa52d94d99ad8565b89fcd602d0c8aa7c830a79d3a3bb08e5ac8123cf07cfddc8ef0126b10f80  i3status-2.14.tar.xz
"

A  => kubelogin/APKBUILD +32 -0
@@ 1,32 @@
# Maintainer: xdavidwu <xdavidwuph@gmail.com>
pkgname=kubelogin
pkgver=1.25.1
pkgrel=0
pkgdesc="kubectl plugin for Kubernetes OpenID Connect authentication (kubectl oidc-login) "
url="https://github.com/int128/kubelogin"
arch="all"
license="Apache-2.0"
depends=""
makedepends="go"
checkdepends=""
install=""
subpackages=""
source="$pkgname-$pkgver.tar.gz::https://github.com/int128/kubelogin/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	go build
}

check() {
	# Replace with proper check command(s)
	:
}

package() {
	install -Dm755 $pkgname "$pkgdir/usr/bin/kubectl-oidc_login"
}

sha512sums="
3ad838e45036075e8d2bfc916e5708f4fa5bd5d93c45f5e2ad57e3d81586be430dc20687e285a35db94ace47624f5dbd44ad2dd539e49701cd2b21d543437f60  kubelogin-1.25.1.tar.gz
"

A  => vimpager/APKBUILD +33 -0
@@ 1,33 @@
# Maintainer: xdavidwu <xdavidwuph@gmail.com>
pkgname=vimpager
pkgver=2.06_git20210610
pkgrel=0
pkgdesc="Use Vim as PAGER"
url="https://github.com/rkitover/vimpager"
arch="all"
license="BSD-2-Clause AND Vim"
depends=""
makedepends="pandoc"
checkdepends=""
install=""
subpackages="$pkgname-doc"
_commit=d9afe3445d9e004259e63376758e25dfbec6c0a8
source="$pkgname-$_commit.tar.gz::https://github.com/rkitover/vimpager/archive/$_commit.tar.gz"
builddir="$srcdir/$pkgname-$_commit"

build() {
	make all
}

check() {
	# Replace with proper check command(s)
	:
}

package() {
	make PREFIX=/usr SYSCONFDIR=/etc DESTDIR="$pkgdir" install
}

sha512sums="
0e49862aef04187a441a96d763144cb89c215faf3931cd3fd71668dfc8691a8a8ce54c9b1a59af86c2d9a7965e63a24cadeb086fc6004873c234d734b1587bd2  vimpager-d9afe3445d9e004259e63376758e25dfbec6c0a8.tar.gz
"