summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3af40037fcf26cee424e95d9ebd728f5c8970ea9 (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
# Maintainer: GordonGR <ntheo1979@gmail.com>
# Contributor: Kazuo Teramoto <kaz.rag at gmail dot com>
# Contributor: damir <damir@archlinux.org>

pkgname=lib32-libcdio
_pkgname=libcdio
pkgver=0.93
pkgrel=1
pkgdesc="GNU Compact Disc Input and Control Library (32-bit)"
arch=("x86_64")
license=('GPL3')
url="http://www.gnu.org/software/libcdio/"
depends=('gcc-libs-multilib>=4.4.2' "libcdio")
options=('!libtool')
install=libcdio.install
source=(http://ftp.gnu.org/gnu/libcdio/${_pkgname}-${pkgver}.tar.gz{,.sig}
        libcdio-0.83-linking.patch)
md5sums=('d154476feaac5a7b5f180e83eaf3d689'
         'SKIP'
         '5a7f50209c03d5919d5b932f07871af7')

prepare() {
cd "${srcdir}/${_pkgname}-${pkgver}"
patch -Np1 -i $srcdir/libcdio-0.83-linking.patch
}	

build() {
export CC="gcc -m32"
export CXX="g++ -m32"
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"

cd "${srcdir}/${_pkgname}-${pkgver}"
./configure --prefix=/usr --disable-vcd-info --enable-cpp-progs \
    --libdir=/usr/lib32 --without-cd-drive --without-cd-info \
    --without-cdda-player --without-cd-read --without-iso-info \
    --without-iso-read --disable-cddb
make
}
package() {
cd "${srcdir}/${_pkgname}-${pkgver}"
make -j1 DESTDIR="${pkgdir}" install

rm -rf ${pkgdir}/usr/bin ${pkgdir}/usr/include ${pkgdir}/usr/share
}