db-move: moved xdg-desktop-portal-gnome from [testing] to [extra] (x86_64)
[arch-packages.git] / libcdio / trunk / PKGBUILD
blobc3607142986c39dca536ee1e2e8a219dd3998619
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 _commit=9c7a2779846da161279bc1501e83c849cf89a594  # tags/release-2.1.0
14 source=("git+https://git.savannah.gnu.org/git/libcdio.git#commit=$_commit")
15 sha256sums=('SKIP')
16 validpgpkeys=('DAA63BC2582034A02B923D521A8DE5008275EC21') # R. Bernstein
18 pkgver() {
19   cd $pkgname
20   git describe --tags | sed 's/^release-//;s/[^-]*-g/r&/;s/-/+/g'
23 prepare() {
24   cd $pkgname
26   # Format security
27   git cherry-pick -n 2adb43c60afc6e98e94d86dad9f93d3df52862b1
29   # realpath test failure
30   git cherry-pick -n 56335fff0f21d294cd0e478d49542a43e9495ed0
32   autoreconf -fvi
35 build() {
36   cd $pkgname
37   ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
38     --disable-vcd-info --disable-cddb --enable-cpp-progs --disable-static \
39     --enable-maintainer-mode
40   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
41   make
44 check() {
45   cd $pkgname
46   make -C test check
49 package() {
50   cd $pkgname
51   make DESTDIR="$pkgdir" install
53   sed -e "/define CDIO_LIBCDIO_SOURCE_PATH/s|.*|/* #undef CDIO_LIBCDIO_SOURCE_PATH */|" \
54       -i "$pkgdir/usr/include/cdio/cdio_config.h"