diff options
author | Alyxia Sother | 2021-08-13 20:42:04 +0200 |
---|---|---|
committer | Alyxia Sother | 2021-08-13 20:42:04 +0200 |
commit | 9e8f82c4c7bf5dcf92a96f2c4b6bea7503cb96e9 (patch) | |
tree | e04b34679b82f238e1677b702f75633dda1ebfc9 | |
download | aur-9e8f82c4c7bf5dcf92a96f2c4b6bea7503cb96e9.tar.gz |
Initialize package
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 32 |
2 files changed, 47 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..b3eb12bfa896 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = discordo-git + pkgdesc = A lightweight and feature-rich terminal-based Discord client + pkgver = r119.795d557 + pkgrel = 1 + url = https://github.com/rigormorrtiss/discordo/ + arch = x86_64 + license = MIT + makedepends = go + makedepends = git + depends = glibc + provides = discordo + source = git+https://github.com/rigormorrtiss/discordo.git + md5sums = SKIP + +pkgname = discordo-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..f8450a8e5428 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,32 @@ +_pkgname='discordo' +pkgname='discordo-git' +pkgdesc='A lightweight and feature-rich terminal-based Discord client' +url="https://github.com/rigormorrtiss/$_pkgname/" +license=('MIT') +pkgver=r119.795d557 +pkgrel=1 +source=("git+https://github.com/rigormorrtiss/$_pkgname.git") +md5sums=('SKIP') +provides=('discordo') +depends=('glibc') +makedepends=('go' 'git') +arch=('x86_64') + +pkgver() { + cd "$srcdir/$_pkgname" + ( set -o pipefail + git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +build() { + cd $srcdir/$_pkgname + go build +} + +package() { + cd $srcdir/$_pkgname + install -Dm755 $_pkgname "$pkgdir/usr/bin/$_pkgname" + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} |