summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f44802e881a8d7f8dbd17dda59283083fa7c8d3e (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
# Maintainer: willemw <willemw12@gmail.com>

pkgname=podget-git
pkgver=0.8.8.r20.g750fa49
pkgrel=1
pkgdesc="Simple tool to automate downloading of podcasts"
arch=('any')
url="https://github.com/dvehrs/podget"
license=('GPL3')
makedepends=('git')
depends=('wget')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=($pkgname::git+$url.git)
sha256sums=('SKIP')

pkgver() {
  git -C $pkgname describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
  install -Dm644 $pkgname/README -t "$pkgdir/usr/share/${pkgname%-git}"
  cp -a $pkgname/SCRIPTS/ "$pkgdir/usr/share/${pkgname%-git}/scripts/"

  make -C $pkgname prefix=/usr DESTDIR="$pkgdir/" changelog.gz install
}