summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorGordonGR2015-06-08 14:04:36 +0300
committerGordonGR2015-06-08 14:04:36 +0300
commit938cba04a8573e23f1207a1443e692e011dc2af1 (patch)
treeea19e2ec6ca63c00cdf7ec0788ff4d1fd6a4ca46 /PKGBUILD
downloadaur-938cba04a8573e23f1207a1443e692e011dc2af1.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..3af40037fcf
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,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
+}