summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 01e04431c23cc360d2464913cfcb4b08535498ea (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
43
# Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com>

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

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

prepare() {
  mkdir -p build

  cd libdvdread
  autoreconf -vif
}

build() {
  cd build
  ../libdvdread/configure \
    --prefix=/usr \
    --enable-static=no \
    --with-libdvdcss

  make
}

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