archrelease: copy trunk to extra-x86_64
[arch-packages.git] / libcdio / repos / extra-x86_64 / PKGBUILD
blob8cc97e4fe5ba3998ae9ca7f89b5252d9413ba7bd
1 # Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
2 # Contributor: damir <damir@archlinux.org>
4 pkgname=libcdio
5 pkgver=2.1.0
6 pkgrel=3
7 pkgdesc="GNU Compact Disc Input and Control Library"
8 url="https://www.gnu.org/software/libcdio/"
9 arch=(x86_64)
10 license=(GPL3)
11 depends=(ncurses gcc-libs)
12 makedepends=(git help2man)
13 options=(debug)
14 _commit=9c7a2779846da161279bc1501e83c849cf89a594  # tags/release-2.1.0
15 source=("git+https://git.savannah.gnu.org/git/libcdio.git#commit=$_commit")
16 sha256sums=('SKIP')
17 validpgpkeys=('DAA63BC2582034A02B923D521A8DE5008275EC21') # R. Bernstein
19 pkgver() {
20   cd $pkgname
21   git describe --tags | sed 's/^release-//;s/[^-]*-g/r&/;s/-/+/g'
24 prepare() {
25   cd $pkgname
27   # Format security
28   git cherry-pick -n 2adb43c60afc6e98e94d86dad9f93d3df52862b1
30   # realpath test failure
31   git cherry-pick -n 56335fff0f21d294cd0e478d49542a43e9495ed0
33   autoreconf -fvi
36 build() {
37   cd $pkgname
38   ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
39     --disable-vcd-info --disable-cddb --enable-cpp-progs --disable-static \
40     --enable-maintainer-mode
41   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
42   make
45 check() {
46   cd $pkgname
47   make -C test check
50 package() {
51   cd $pkgname
52   make DESTDIR="$pkgdir" install
54   sed -e "/define CDIO_LIBCDIO_SOURCE_PATH/s|.*|/* #undef CDIO_LIBCDIO_SOURCE_PATH */|" \
55       -i "$pkgdir/usr/include/cdio/cdio_config.h"