PKGBUILDs/extra/libcdio/PKGBUILD

72 lines
1.6 KiB
Bash
Raw Permalink Normal View History

2024-07-13 18:33:05 +00:00
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
# Contributor: damir <damir@archlinux.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - patch from Gentoo and set -D_FILE_OFFSET_BITS=64 to fix 32bit FTBFS
pkgname=libcdio
2025-01-12 11:59:25 +00:00
pkgver=2.2.0
pkgrel=1
2024-07-13 18:33:05 +00:00
pkgdesc="GNU Compact Disc Input and Control Library"
url="https://www.gnu.org/software/libcdio/"
arch=(x86_64)
2025-01-12 11:59:25 +00:00
license=(GPL-3.0-or-later)
depends=(
gcc-libs
glibc
ncurses
)
makedepends=(
git
help2man
)
source=(
"git+https://github.com/libcdio/libcdio#tag=$pkgver"
"libcdio-2.1.0-no-lfs-shims.patch"
)
b2sums=('f7a71168f5957f073bf95d0fe68a69a6129f0c11410a1fa4927b41ccfc3f3828f2801e5e91597b6bab33523be4995b9a548d04a1c42463ed96367fb9c56780f5'
'8a6fae6bcd84dfe14789ce268f808dbc10198089ba64b1825b690982847a5b40497a3b645020e5c68ccbbd221e1b8c4e978260ec4af06406d758f0809c346107')
validpgpkeys=(
DAA63BC2582034A02B923D521A8DE5008275EC21 # R. Bernstein <rocky@panix.com>
)
2024-07-13 18:33:05 +00:00
prepare() {
cd $pkgname
# gentoo patch for 32bit
patch -p1 -i ../libcdio-2.1.0-no-lfs-shims.patch
autoreconf -fvi
}
build() {
2025-01-12 11:59:25 +00:00
local configure_options=(
--prefix=/usr
--sysconfdir=/etc
--localstatedir=/var
--disable-cddb
--enable-cpp-progs
--enable-maintainer-mode
--disable-static
--disable-vcd-info
)
2024-07-13 18:33:05 +00:00
cd $pkgname
CPPFLAGS+=' -D_FILE_OFFSET_BITS=64'
2025-01-12 11:59:25 +00:00
./configure "${configure_options[@]}"
2024-07-13 18:33:05 +00:00
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
check() {
cd $pkgname
make -C test check
}
package() {
cd $pkgname
make DESTDIR="$pkgdir" install
}
2025-01-12 11:59:25 +00:00
# vim:set sw=2 sts=-1 et: