mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-10 14:24:36 +08:00
44 lines
1.1 KiB
Bash
44 lines
1.1 KiB
Bash
#
|
|
# Platform packages for Chakra, part of chakra-project.org
|
|
#
|
|
# Contributor: damir <damir@archlinux.org>
|
|
# Maintainer: Bruce Liu <rainman59118 AT Gmail.com>
|
|
|
|
pkgname=libcdio
|
|
pkgver=0.90
|
|
pkgrel=1
|
|
pkgdesc="GNU Compact Disc Input and Control Library"
|
|
arch=("x86_64")
|
|
license=('GPL3')
|
|
url="http://www.gnu.org/software/libcdio/"
|
|
depends=('gcc-libs>=4.4.2' 'libcddb' 'ncurses')
|
|
options=('!libtool')
|
|
install=libcdio.install
|
|
source=(http://ftp.gnu.org/gnu/libcdio/${pkgname}-${pkgver}.tar.gz)
|
|
source=("http://ftp.gnu.org/gnu/libcdio/${pkgname}-${pkgver}.tar.gz"
|
|
"libcdio-0.83-linking.patch")
|
|
md5sums=('1b245b023fb03a58d030fd2800db3247'
|
|
'2826f89c78f09b0c0cbaeb47d507a55e')
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
patch -Np1 -i "${srcdir}/libcdio-0.83-linking.patch"
|
|
|
|
./configure --prefix=/usr \
|
|
--disable-vcd-info \
|
|
--enable-cpp-progs \
|
|
--disable-static
|
|
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
sed -i "/LIBCDIO_SOURCE_PATH/s|.*|/* #undef LIBCDIO_SOURCE_PATH */|" \
|
|
"${pkgdir}/usr/include/cdio/cdio_config.h"
|
|
}
|
|
|