summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 51b0c270c33e93bbe04babbc225bbf085a0b87ee (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
# Maintainer: bronson mathews <bronsonmathews@gmail.com> -> http://bit-shift.io -> https://github.com/bit-shift-io
pkgname=audiobook-git
pkgver=r39.6ee8b5b
pkgrel=1
pkgdesc="A simple audio book reader. Written in Qt and C++."
arch=('x86_64')
url="https://github.com/bit-shift-io/audiobook"
license=('GPL3')
depends=('qt5-base')
makedepends=('git' 'qt5-tools' 'qt5-multimedia' 'taglib')
provides=('audiobook')
source=("${pkgname}::git+https://github.com/bit-shift-io/audiobook.git")
md5sums=('SKIP')

pkgver() {
  cd "${pkgname}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "${pkgname}"
  mkdir -p build
  cd "${srcdir}/${pkgname}/build"
  cmake .. -DCMAKE_INSTALL_PREFIX=/usr
  make
}

package() {
  cd "${srcdir}/${pkgname}/build"
  make DESTDIR="$pkgdir" install
  install -Dm644 -t "${pkgdir}/usr/share/doc/${pkgname}" ../README.md
}