diff options
author | gbr | 2021-02-03 21:32:23 -0300 |
---|---|---|
committer | gbr | 2021-02-03 21:32:23 -0300 |
commit | ec6edd2340dd1a4c77acec10fa49ae3fb4b05273 (patch) | |
tree | 199e623da488c3ea59ac89074625aae72fc8e93f | |
download | aur-ec6edd2340dd1a4c77acec10fa49ae3fb4b05273.tar.gz |
twittuh-git: initial import
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 41 |
3 files changed, 59 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..68ece040e0aa --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = twittuh-git + pkgdesc = Small Go program to make RSS/ATOM/JSON feeds from Twitter timelines + pkgver = r89.ef45111 + pkgrel = 1 + url = https://github.com/derat/twittuh + arch = x86_64 + license = BSD + makedepends = go + depends = chromium + source = twittuh::git+https://github.com/derat/twittuh.git#branch=master + sha256sums = SKIP + +pkgname = twittuh-git + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..17f5c6dfca74 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +pkg/ +src/ +twittuh/ +*.tar.* diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..be979cc5bece --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: gbr <gbr@protonmail.com> +_pkgname=twittuh +pkgname=twittuh-git +pkgver=r89.ef45111 +pkgrel=1 +pkgdesc='Small Go program to make RSS/ATOM/JSON feeds from Twitter timelines' +arch=('x86_64') +url='https://github.com/derat/twittuh' +license=('BSD') +depends=('chromium') +makedepends=('go') +source=("$_pkgname::git+https://github.com/derat/twittuh.git#branch=master") +sha256sums=('SKIP') + +pkgver() { + cd "$_pkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "$srcdir/$_pkgname" + go build \ + -o "$_pkgname" \ + -trimpath \ + -buildmode=pie \ + -mod=readonly \ + -modcacherw \ + -ldflags "-extldflags \"${LDFLAGS}\"" \ + . +} + +check() { + cd "$srcdir/$_pkgname" + go test -v ./... +} + +package() { + cd "$srcdir/$_pkgname" + install -Dm755 $_pkgname "$pkgdir"/usr/bin/$_pkgname + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$_pkgname/LICENSE" +} |