diff options
author | Donald Webster | 2021-03-17 10:24:11 -0700 |
---|---|---|
committer | Donald Webster | 2021-03-17 10:24:11 -0700 |
commit | fa7af6f6a310dfd0e4a389f0c789775a3a979a26 (patch) | |
tree | 6275f282c848bbc50700a3224d22421462f22a8b | |
download | aur-fa7af6f6a310dfd0e4a389f0c789775a3a979a26.tar.gz |
Initial version of tqm package.
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | PKGBUILD | 43 |
3 files changed, 65 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..c28c535b721f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = tqm + pkgdesc = CLI tool to manage your torrent client queues. Primary focus is on removing torrents that meet specific criteria. + pkgver = 1.4.1 + pkgrel = 1 + url = https://github.com/l3uddz/tqm + arch = x86_64 + arch = aarch64 + arch = armv7h + license = GPL3 + depends = go + optdepends = deluge: torrent downloader + optdepends = qbittorrent: torrent downloader + source = tqm-1.4.1.tar.gz::https://github.com/l3uddz/tqm/archive/v1.4.1.tar.gz + sha512sums = 49fde3a8c60399f0ad6c074a3c050c519781a8bccf795a097abd0a64a0acf8b640bdb9933ec827db4c98740355e0e56c0c7554fbc82aef220a2f5d0d36b85eb0 + +pkgname = tqm + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..6e570bc49abe --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +*.xz +*.gz +*.log +/src/ +/pkg/ diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..582d74d1dbb4 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,43 @@ + +# Maintainer: Donald Webster <fryfrog@gmail.com> + +pkgname="tqm" +pkgver=1.4.1 +pkgrel=1 +pkgdesc="CLI tool to manage your torrent client queues. Primary focus is on removing torrents that meet specific criteria." +arch=('x86_64' 'aarch64' 'armv7h') +url="https://github.com/l3uddz/tqm" +license=('GPL3') +depends=('go') +optdepends=( + 'deluge: torrent downloader' + 'qbittorrent: torrent downloader' +) + +#backup=('etc/unpackerr/unpackerr.conf') + +source=( + "${pkgname}-${pkgver}.tar.gz::https://github.com/l3uddz/tqm/archive/v${pkgver}.tar.gz" +) + +sha512sums=('49fde3a8c60399f0ad6c074a3c050c519781a8bccf795a097abd0a64a0acf8b640bdb9933ec827db4c98740355e0e56c0c7554fbc82aef220a2f5d0d36b85eb0') + +prepare(){ + cd "$pkgname-$pkgver" + mkdir -p build/ +} + +build() { + cd "$pkgname-$pkgver" + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" + export GOFLAGS="-buildmode=pie -trimpath -modcacherw" + go build -o tqm +} + +package() { + # Install the binary + install -D -m 755 "${srcdir}/${pkgname}-${pkgver}/tqm" "${pkgdir}/usr/bin/tqm" +} |