blob: 582d74d1dbb4a74130a8c6e11aa94f971ff26576 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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"
}
|