summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 787b9555f466269ec52defa5d1960a0dcad6d2b1 (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
# Maintainer: VCalV
pkgname=overdrive2opus-git
pkgver=r52.675d07e
pkgrel=1
pkgdesc="convert overdrive audiobooks into opus files with chapters and thumbnails"
arch=('any')
url="https://github.com/vcalv/overdrive2opus"
license=('GPL3')
groups=()
depends=(python ffmpeg opus-tools python-appdirs python-rich)
makedepends=(git)
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("$pkgname::git+https://github.com/vcalv/overdrive2opus")
noextract=()
md5sums=(SKIP)
validpgpkeys=()

pkgver() {
  cd "$pkgname"
  ( set -o pipefail
    git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  )
}

package() {
	cd "$pkgname"
	install -D overdrive2opus.py "$pkgdir/usr/bin/overdrive2opus"
}