summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 133afcb685592eaec33b47b6f5bd56d8ecfefaf3 (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
38
39
40
41
42
# Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com>

pkgname=libdvdnav-git
pkgver=6.1.1.23.g9831fe0
pkgrel=1
pkgdesc="Library to navigate DVD disks. (GIT version)"
arch=('x86_64')
license=('GPL2')
url='https://dvdnav.mplayerhq.hu'
depends=('libdvdread')
makedepends=('git')
provides=('libdvdnav')
conflicts=('libdvdnav')
source=('git+https://code.videolan.org/videolan/libdvdnav.git')
sha256sums=('SKIP')

pkgver() {
  cd libdvdnav
  echo "$(git describe --long --tags | tr - .)"
}

prepare() {
  mkdir -p build
}

build() {
  cd libdvdnav
  autoreconf -vif

  cd "${srcdir}/build"
  ../libdvdnav/configure \
    --prefix=/usr \
    --enable-static=no

  make
}

package() {
  depends=('libdvdread.so')

  make -C build DESTDIR="${pkgdir}" install
}