summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 165b0f43210399308b95d11b35135ac522e12efc (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
# Maintainer: Fabio 'Lolix' Loli <fabio.loli@disroot.org> -> https://github.com/FabioLolix

pkgname=bluray_info-git
pkgver=1.14.r0.g0f1a747
pkgrel=1
pkgdesc="Blu-ray utilities: bluray_info, bluray_copy, bluray_player"
arch=(x86_64)
url="https://github.com/beandog/bluray_info"
license=(GPL-2.0-only)
depends=(glibc libaacs libbluray mpv)
makedepends=(git)
provides=(bluray_info)
conflicts=(bluray_info)
source=("git+https://github.com/beandog/bluray_info.git")
sha256sums=('SKIP')

pkgver() {
  cd bluray_info
  git describe --long --tags --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
  cd bluray_info
  autoreconf -f -i
}

build() {
  cd bluray_info
  ./configure --prefix=/usr --with-libmpv
  make
}

package() {
  cd bluray_info
  make DESTDIR="${pkgdir}" install
}