diff options
author | Håvard Mjaavatten | 2024-05-10 16:24:52 +0200 |
---|---|---|
committer | Håvard Mjaavatten | 2024-05-10 16:26:25 +0200 |
commit | 3b96fc4e2b6633b0cdd329d9d171d391e753be19 (patch) | |
tree | 1cba867cbeaea2a671e303695c0d9e2a51b62656 | |
download | aur-3b96fc4e2b6633b0cdd329d9d171d391e753be19.tar.gz |
Initial
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | PKGBUILD | 40 |
3 files changed, 62 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..8429977ba75c --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = wait_ex-git + pkgdesc = Replacement of Bash's wait with error handling + pkgver = 0.1.0.r2.g330d3cb + pkgrel = 1 + url = https://git.sr.ht/~mjaa/wait_ex + arch = x86_64 + license = MIT + makedepends = nim + makedepends = git + depends = glibc + depends = gcc-libs + provides = wait_ex + conflicts = wait_ex + source = wait_ex::git+https://git.sr.ht/~mjaa/wait_ex + md5sums = SKIP + +pkgname = wait_ex-git diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..c6a9b954b0ed --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +* + +!.gitignore +!PKGBUILD +!.SRCINFO diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..ab97f673a026 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: hjmjaa-aur <aur AT hjmjaa DOT com> + +_pkgname=wait_ex +pkgname="$_pkgname-git" +pkgver=0.1.0.r2.g330d3cb +pkgrel=1 +pkgdesc="Replacement of Bash's wait with error handling" +arch=('x86_64') +url="https://git.sr.ht/~mjaa/$_pkgname" +license=('MIT') +groups=() +depends=(glibc gcc-libs) +makedepends=(nim git) +optdepends=() +provides=("$_pkgname") +conflicts=("$_pkgname") +replaces=() +backup=() +options=() +install= +changelog= +source=("$_pkgname::git+$url") +noextract=() +md5sums=(SKIP) # updpkgsums + +pkgver() { + cd "$_pkgname" + git describe --tags --long | sed -E 's/^v//;s/([^-]*-g)/r\1/;s/-/./g;s/\.rc/rc/' +} + +build() { + cd "$_pkgname" + nimble -d:release build +} + +package() { + cd "$_pkgname" + install -Dm 755 wait_ex -t "${pkgdir}/usr/bin" + install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/$pkgname" +} |