diff options
author | root <root@rshg054.dnsready.net> | 2012-02-18 23:15:35 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-02-18 23:15:35 +0000 |
commit | 1098e9db0acc5bb5c45af5778492faf3b4c99dd6 (patch) | |
tree | 24f65718bdb292fc62194464db8bee1348c48ee5 /staging | |
parent | b31146f2405c7d0f50bcc36b682af46be84cdeb8 (diff) |
Sat Feb 18 23:15:35 UTC 2012
Diffstat (limited to 'staging')
-rw-r--r-- | staging/libcdio/PKGBUILD | 34 | ||||
-rw-r--r-- | staging/libcdio/libcdio-0.83-linking.patch | 22 | ||||
-rw-r--r-- | staging/libcdio/libcdio.install | 13 |
3 files changed, 69 insertions, 0 deletions
diff --git a/staging/libcdio/PKGBUILD b/staging/libcdio/PKGBUILD new file mode 100644 index 000000000..350deb487 --- /dev/null +++ b/staging/libcdio/PKGBUILD @@ -0,0 +1,34 @@ +# $Id: PKGBUILD 150473 2012-02-18 01:35:00Z allan $ +# Maintainer: +# Contributor: damir <damir@archlinux.org> + +pkgname=libcdio +pkgver=0.83 +pkgrel=1 +pkgdesc="GNU Compact Disc Input and Control Library" +arch=('i686' 'x86_64') +license=('GPL3') +url="http://www.gnu.org/software/libcdio/" +depends=('libcddb' 'ncurses') +options=('!libtool') +install=libcdio.install +source=(http://ftp.gnu.org/gnu/libcdio/${pkgname}-${pkgver}.tar.gz{,.sig} + libcdio-0.83-linking.patch) +md5sums=('b9e0f1bccb142e697cd834fe56b6e6fb' + 'a7864a4b572a1e2a28cc0a05aa4a67d3' + '5a7f50209c03d5919d5b932f07871af7') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + patch -Np1 -i $srcdir/libcdio-0.83-linking.patch + ./configure --prefix=/usr --disable-vcd-info --enable-cpp-progs + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make -j1 DESTDIR="${pkgdir}" install + + sed -i "/LIBCDIO_SOURCE_PATH/s|.*|/* #undef LIBCDIO_SOURCE_PATH */|" \ + $pkgdir/usr/include/cdio/cdio_config.h +} diff --git a/staging/libcdio/libcdio-0.83-linking.patch b/staging/libcdio/libcdio-0.83-linking.patch new file mode 100644 index 000000000..84a0746b5 --- /dev/null +++ b/staging/libcdio/libcdio-0.83-linking.patch @@ -0,0 +1,22 @@ +diff -Naur libcdio-0.83-orig/example/C++/OO/Makefile.in libcdio-0.83/example/C++/OO/Makefile.in +--- libcdio-0.83-orig/example/C++/OO/Makefile.in 2011-10-27 18:02:31.000000000 +1000 ++++ libcdio-0.83/example/C++/OO/Makefile.in 2012-02-18 11:10:07.369277231 +1000 +@@ -315,15 +315,15 @@ + + isofile2_SOURCES = isofile2.cpp + isofile2_LDADD = $(LIBISO9660PP_LIBS) $(LIBISO9660_LIBS) \ +- $(LIBCDIOPP_LIBS) $(LTLIBICONV) ++ $(LIBCDIOPP_LIBS) $(LIBCDIO_LIBS) $(LTLIBICONV) + + isolist_SOURCES = isolist.cpp + isolist_LDADD = $(LIBISO9660PP_LIBS) $(LIBISO9660_LIBS) \ +- $(LIBCDIOPP_LIBS) $(LTLIBICONV) ++ $(LIBCDIOPP_LIBS) $(LIBCDIO_LIBS) $(LTLIBICONV) + + iso4_SOURCES = iso4.cpp + iso4_LDADD = $(LIBISO9660PP_LIBS) $(LIBISO9660_LIBS) \ +- $(LIBCDIOPP_LIBS) $(LTLIBICONV) ++ $(LIBCDIOPP_LIBS) $(LIBCDIO_LIBS) $(LTLIBICONV) + + mmc1_SOURCES = mmc1.cpp + mmc1_DEPENDENCIES = $(LIBCDIO_DEPS) diff --git a/staging/libcdio/libcdio.install b/staging/libcdio/libcdio.install new file mode 100644 index 000000000..33a4e1ace --- /dev/null +++ b/staging/libcdio/libcdio.install @@ -0,0 +1,13 @@ +info_dir=/usr/share/info + +post_install() { + install-info ${info_dir}/libcdio.info.gz ${info_dir}/dir 2> /dev/null +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + install-info --delete ${info_dir}/libcdio.info.gz ${info_dir}/dir 2> /dev/null +} |