diff options
author | Rasmus Lindroth | 2020-04-09 11:06:03 +0200 |
---|---|---|
committer | Rasmus Lindroth | 2020-04-09 11:06:03 +0200 |
commit | 3a78453c1f18bd6485c1b4be8190a89a06812f34 (patch) | |
tree | fdace1e0a9556b86f082668faf1f05119c8eba84 | |
download | aur-3a78453c1f18bd6485c1b4be8190a89a06812f34.tar.gz |
First AUR release of tut
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | PKGBUILD | 25 |
3 files changed, 39 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..bb64a732e773 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = tut + pkgdesc = Tui for Mastodon + pkgver = 0.0.5 + pkgrel = 1 + url = https://github.com/RasmusLindroth/tut + arch = any + license = MIT + makedepends = go + source = https://github.com/RasmusLindroth/tut/archive/0.0.5.tar.gz + sha256sums = 8142c824fa4e6e0144473a8747bee09d5c5c74182d5a184e7f1427f3bf39c4f5 + +pkgname = tut + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..b093d7e7396a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +generate.sh diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b952aa91fa70 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,25 @@ +# Maintainer: Rasmus Lindroth <rasmus@lindroth.xyz> +pkgname=tut +pkgver=0.0.5 +pkgrel=1 +pkgdesc='A TUI for Mastodon' +arch=('any') +url="https://github.com/RasmusLindroth/$pkgname" +license=('MIT') +makedepends=('go') +source=("https://github.com/RasmusLindroth/$pkgname/archive/$pkgver.tar.gz") +sha256sums=('8142c824fa4e6e0144473a8747bee09d5c5c74182d5a184e7f1427f3bf39c4f5') + +build() { + cd $pkgname-$pkgver + go build \ + -gcflags "all=-trimpath=$PWD" \ + -asmflags "all=-trimpath=$PWD" \ + -ldflags "-extldflags $LDFLAGS" \ + -o $pkgname . +} + +package() { + cd $pkgname-$pkgver + install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname +} |