summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3b9b4c7e31d11a69e9910e1868b421881317365e (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
pkgname=(dvdread-git)
pkgver=0.6be9c87
pkgrel=1
pkgdesc="Utility for creating deCSSed images of protected DVDs"
arch=('i686' 'x86_64')
url=https://github.com/xrgtn/dvdread
license=(Unknown)
source=('git+https://github.com/xrgtn/dvdread.git'
        'seek_mpeg.patch')
md5sums=('SKIP'
         'adb25381b347136d0832de701748578a')

pkgver() {
        cd "dvdread"
        echo 0.$( git describe --always | sed 's#-#_#g;s#v##' )
}

#prepare(){
#        cd "${srcdir}/dvdread"
#        #See https://www.videolan.org/developers/libdvdcss/doc/html/dvdcss_8h.html#adb7100ec59427598e1c42fdc0429b63a
#        patch -Np2 < "${srcdir}/seek_mpeg.patch"
#}

build(){
        cd "${srcdir}/dvdread"
        make dvdread
}

package(){
        cd "${srcdir}/dvdread"
        mkdir -m755 -p "${pkgdir}/usr/bin/"
        install -m755 dvdread "${pkgdir}/usr/bin/"
}