summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: abc30b58d682e64401260b4577bd41ad349afc2c (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
44
45
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=libcdio-paranoia-git
pkgver=10.2+2.0.1.r27.g1e8733d
pkgrel=1
pkgdesc="CD paranoia on top of libcdio"
arch=('i686' 'x86_64')
url="https://www.gnu.org/software/libcdio/"
license=('GPL3')
depends=('glibc' 'libcdio')
makedepends=('git')
provides=("libcdio-paranoia=$pkgver")
conflicts=('libcdio-paranoia')
options=('staticlibs')
source=("git+https://github.com/rocky/libcdio-paranoia.git")
sha256sums=('SKIP')


pkgver() {
  cd "libcdio-paranoia"

  git describe --long --tags | sed 's/^release-//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "libcdio-paranoia"

  autoreconf -fi
  ./configure \
    --prefix="/usr" \
    --disable-example-progs
  make
}

check() {
  cd "libcdio-paranoia"

  make check
}

package() {
  cd "libcdio-paranoia"

  make DESTDIR="$pkgdir" install
}