summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fea8392c948e5018c76bc5463f2bc8330188bfda (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=libdvdcss-git
pkgver=1.4.3.3.gd0b6a29
pkgrel=1
pkgdesc='A portable abstraction library for DVD decryption. (GIT version)'
arch=('x86_64')
license=('GPL2')
url='https://www.videolan.org/libdvdcss'
depends=('glibc')
makedepends=('git')
provides=(
  'libdvdcss'
  'libdvdcss.so'
)
conflicts=('libdvdcss')
source=('git+https://code.videolan.org/videolan//libdvdcss.git')
sha256sums=('SKIP')

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

prepare() {
  mkdir -p build
}

build() {
  cd libdvdcss
  autoreconf -vif

  cd "${srcdir}/build"
  ../libdvdcss/configure \
    --prefix=/usr

  make
}

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