diff options
author | Tim Yang | 2021-02-15 16:33:16 -0600 |
---|---|---|
committer | Tim Yang | 2021-02-15 16:33:16 -0600 |
commit | 4591d9873980224478bcc3f21949ab6fbcb3dfab (patch) | |
tree | b6a21a15f7c1cd073759be0cb98ee159434ee677 | |
download | aur-4591d9873980224478bcc3f21949ab6fbcb3dfab.tar.gz |
Add initial files
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 31 |
2 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..85459d388e47 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = tuxi-git + pkgdesc = A CLI assistant which scrapes Google search to get instant answers to your questions on your terminal + pkgver = r18.16d668e + pkgrel = 1 + url = https://github.com/Bugswriter/tuxi + arch = any + license = custom + makedepends = git + depends = jq + depends = pup + depends = recode + provides = tuxi + conflicts = tuxi + source = tuxi-git::git+https://github.com/Bugswriter/tuxi + md5sums = SKIP + +pkgname = tuxi-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..2301476e09b1 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Tim Yang <protonmail = timdyang> + +pkgname=tuxi-git +pkgver=r18.16d668e +pkgrel=1 +pkgdesc="A CLI assistant which scrapes Google search to get instant answers to your questions on your terminal" +arch=(any) +url=https://github.com/Bugswriter/tuxi +license=(custom) +depends=(jq pup recode) +makedepends=(git) +provides=(tuxi) +conflicts=(tuxi) +source=($pkgname::git+https://github.com/Bugswriter/tuxi) +md5sums=(SKIP) + +pkgver() { + cd "$srcdir"/$pkgname + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + cd "$srcdir"/$pkgname + sed '1,/^#* License/d' README.md > LICENSE +} + +package() { + cd "$srcdir"/$pkgname + install -Dm755 tuxi "$pkgdir"/usr/bin/tuxi + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} |