blob: 551c18594a18ad35d9766c6f71dbcffd91c451fe (
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
|
# Maintainer: HurricanePootis <hurricanepootis@protonmail.com>
pkgname=tf2cdownloader-git
_pkgname=tf2cdownloader
pkgver=r162.84ebd28
pkgrel=3
pkgdesc="Open Fortress's quick-n-easy downloading solution"
arch=("x86_64")
url="https://github.com/tf2classic/TF2CDownloader"
license=('GPL-3.0-only')
depends=("python-pyzstd" "python-rich" "python-tqdm" "python-httpx")
makedepends=("pyinstaller")
provides=("tf2cdownloader")
conflicts=("tf2cdownloader")
install=tf2cdownloader-git.install
source=("git+$url.git"
"tf2cdownloader")
sha256sums=('SKIP'
'5ff5bb94aec1072b453807bac84721a0ec2258ee7a69fed09e0b017aadc10b84')
pkgver() {
cd "TF2CDownloader"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}
build() {
cd "$srcdir/TF2CDownloader"
pyinstaller tf2c_downloader.spec
}
package() {
cd "$srcdir/TF2CDownloader"
install -Dm755 "$srcdir/TF2CDownloader/dist/tf2c_downloader" "$pkgdir/usr/share/tf2cdownloader/tf2cdownloader"
install -Dm755 "$srcdir/tf2cdownloader" "$pkgdir/usr/bin/tf2cdownloader"
}
|