diff options
author | Nicholas Boyd Isacsson | 2022-05-14 09:15:50 +0200 |
---|---|---|
committer | Nicholas Boyd Isacsson | 2022-05-14 09:15:50 +0200 |
commit | e07b8bbe6438aa9f5cec98a19a8e24e6aaf36a79 (patch) | |
tree | 73363892a625d2eb60356cddb2687af067ddc4a5 | |
download | aur-e07b8bbe6438aa9f5cec98a19a8e24e6aaf36a79.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 29 |
2 files changed, 45 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..4529258c31bd --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = xdg-ninja-git + pkgdesc = A shell script which checks your $HOME for unwanted files and directories. + pkgver = r37.6e5dea2 + pkgrel = 1 + url = https://github.com/b3nj5m1n/xdg-ninja + arch = any + license = GPL3 + makedepends = git + depends = jq + depends = bc + optdepends = glow: rendering markdown in the terminal + provides = xdg-ninja + source = git+https://github.com/b3nj5m1n/xdg-ninja + md5sums = SKIP + +pkgname = xdg-ninja-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..1308f6884fda --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: Nicholas Boyd Isacsson <nicholas@isacsson.se> + +pkgname=xdg-ninja-git +_pkgname=xdg-ninja +pkgver=r37.6e5dea2 +pkgrel=1 +pkgdesc='A shell script which checks your $HOME for unwanted files and directories.' +arch=('any') +url="https://github.com/b3nj5m1n/${_pkgname}" +license=('GPL3') +depends=('jq' 'bc') +makedepends=('git') +optdepends=( + 'glow: rendering markdown in the terminal' +) +provides=('xdg-ninja') +source=(git+$url) +md5sums=(SKIP) + +pkgver() { + cd "${_pkgname}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + cd "$srcdir/$_pkgname" + install -vDm 755 $_pkgname.sh "$pkgdir/usr/bin/$_pkgname" +} + |