diff options
author | Auric Vente | 2022-08-22 06:51:32 -0600 |
---|---|---|
committer | Auric Vente | 2022-08-22 06:51:32 -0600 |
commit | a52f0645ae476f7a7152ece4f1ad98ef534ebd72 (patch) | |
tree | cbe75fac8d5a17d2917743149c3924b4c3eea07e | |
download | aur-a52f0645ae476f7a7152ece4f1ad98ef534ebd72.tar.gz |
Mods
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | PKGBUILD | 28 | ||||
-rwxr-xr-x | push.sh | 5 |
4 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..3471dd4a901f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = rumsfeld-git + pkgdesc = Search file paths recursively. Written in Nim. + pkgver = r1.1eafb9e + pkgrel = 1 + url = https://github.com/madprops/rumsfeld + arch = x86_64 + license = GPL3 + makedepends = nim + makedepends = nimble + makedepends = git + source = rumsfeld-git::git+https://github.com/madprops/rumsfeld.git + sha256sums = SKIP + +pkgname = rumsfeld-git diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..d496fc20db06 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +* +!.SRCINFO +!PKGBUILD +!push.sh +!.gitignore
\ No newline at end of file diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..2fb396fa0921 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: madprops <mprops at protonmail dot com> + +pkgname="rumsfeld-git" +pkgdesc="Search file paths recursively. Written in Nim." +pkgver=r1.1eafb9e +pkgrel=1 +arch=("x86_64") +url="https://github.com/madprops/rumsfeld" +license=("GPL3") +makedepends=("nim" "nimble" "git") +sha256sums=("SKIP") +source=("$pkgname::git+https://github.com/madprops/rumsfeld.git") + +pkgver() { + cd "$pkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd rumsfeld-git + nimble install -d -y + nim compile -d:release -o=bin/rumsfeld-release-linux "src/rumsfeld.nim" +} + +package() { + cd rumsfeld-git + install -D -m755 bin/rumsfeld-release-linux "$pkgdir/usr/bin/rumsfeld" +} diff --git a/push.sh b/push.sh new file mode 100755 index 000000000000..06369432d45f --- /dev/null +++ b/push.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash +makepkg --printsrcinfo > .SRCINFO +git add -A +git commit -m "Mods" +git push origin master |