diff options
author | Dandraghas | 2024-01-29 16:04:44 +0200 |
---|---|---|
committer | Dandraghas | 2024-01-29 16:04:44 +0200 |
commit | cbf8148bc43fc41c014d465681e7af2d22b10d1b (patch) | |
tree | 23abcadadad70aa8f9d901980d9a2393db1b53e5 | |
download | aur-cbf8148bc43fc41c014d465681e7af2d22b10d1b.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | PKGBUILD | 26 |
2 files changed, 39 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..a21236ab0c85 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = devexcuse-git + pkgdesc = This script will fetch a random developer excuse from the web while also keeping an offline database. + pkgver = r5.e0b820f + pkgrel = 1 + url = https://github.com/K4R7IK/DevExcuse + arch = any + license = MIT + makedepends = curl + makedepends = jq + source = git+https://github.com/K4R7IK/DevExcuse.git + sha256sums = SKIP + +pkgname = devexcuse-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c276113e5c97 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,26 @@ +pkgname=devexcuse-git +pkgver=r5.e0b820f +pkgrel=1 +pkgdesc="This script will fetch a random developer excuse from the web while also keeping an offline database." +url="https://github.com/K4R7IK/DevExcuse" +makedepends=('curl' 'jq') +license=('MIT') +arch=('any') + +source=("git+${url}.git") +sha256sums=('SKIP') + +pkgver() { + cd "DevExcuse" + ( set -o pipefail + git describe --long --abbrev=7 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)" + ) +} + + +package() { + cd "${srcdir}/DevExcuse" + + install -Dm755 devexcuse.sh "${pkgdir}/usr/bin/devexcuse" +} |