summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9e84de7d8d11b268496567cbad1dfaf33cdeed35 (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
# Maintainer: corbin.zip (me at corbin dot zip)

pkgname=bcdl-git
pkgver=20230726
pkgrel=1
epoch=
pkgdesc="Automated Bandcamp album downloader"
arch=('any')
url="https://github.com/corbin-ch/bcdl.git"
license=('GPL3')
depends=('python' 'python-requests' 'python-selenium')
makedepends=('git')
source=("$pkgname::git+$url")
sha256sums=('SKIP')

pkgver() {
  cd "$pkgname"
  echo $(git show -s --format="%ci" HEAD | sed 's/-//g' | cut -d ' ' -f 1)
}

package() {
  cd "$pkgname"
  install -Dm755 bcdl.py "$pkgdir/usr/bin/${pkgname%-git}"
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/${pkgname%-git}/LICENSE"
}