summaryrefslogtreecommitdiff
path: root/community/libmirage
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-01-05 00:38:32 -0800
committerroot <root@rshg054.dnsready.net>2013-01-05 00:38:32 -0800
commit2586a8c75ef351dbd1b31605644e101e92d2c280 (patch)
tree75b5ec37752d80f987f98ad0f10789ce6139d8cd /community/libmirage
parent782a0d2109c292b60e7de038df66525a81b21429 (diff)
Sat Jan 5 00:38:32 PST 2013
Diffstat (limited to 'community/libmirage')
-rw-r--r--community/libmirage/PKGBUILD35
-rw-r--r--community/libmirage/libmirage.install11
-rw-r--r--community/libmirage/soname.diff10
3 files changed, 43 insertions, 13 deletions
diff --git a/community/libmirage/PKGBUILD b/community/libmirage/PKGBUILD
index 0238a6320..e1ee19405 100644
--- a/community/libmirage/PKGBUILD
+++ b/community/libmirage/PKGBUILD
@@ -1,27 +1,36 @@
-# $Id: PKGBUILD 66729 2012-02-27 20:41:55Z heftig $
-# Maintainer: Mateusz Herych <heniekk@gmail.com>
+# $Id: PKGBUILD 81967 2013-01-05 03:16:01Z heftig $
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
+# Contributor: Mateusz Herych <heniekk@gmail.com>
# Contributor: Charles Lindsay <charles@chaoslizard.org>
pkgname=libmirage
-pkgver=1.5.0
+pkgver=2.0.0
pkgrel=1
pkgdesc="CD-ROM image (B6T/CCD/CDI/CUE/ISO/MDS/NRG/TOC) access library"
-arch=('i686' 'x86_64')
+arch=(i686 x86_64)
url="http://cdemu.sourceforge.net/"
-license=('GPL')
-depends=('glib2' 'libsndfile' 'zlib')
-makedepends=('bison' 'flex' 'gtk-doc')
-source=(http://downloads.sourceforge.net/cdemu/$pkgname-$pkgver.tar.bz2)
+license=(GPL)
+depends=(glib2 libsndfile zlib bzip2 shared-mime-info)
+makedepends=(bison flex gtk-doc cmake gobject-introspection)
options=(!libtool)
-md5sums=('b60d9baa754efee6e0f6a584ec033fff')
+install=libmirage.install
+source=(http://downloads.sourceforge.net/cdemu/$pkgname-$pkgver.tar.bz2
+ soname.diff)
+md5sums=('72007f3364cbf3aea782aaa1fdade238'
+ '72b5af3d5baf8e9b1ec6afa629373799')
build() {
- cd $srcdir/$pkgname-$pkgver
- ./configure --prefix=/usr --disable-static
+ cd $pkgname-$pkgver
+ patch -Np2 -i ../soname.diff # Produce correct symlinks
+ mkdir build; cd build
+ cmake .. \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib
make
}
package() {
- cd $srcdir/$pkgname-$pkgver
- make DESTDIR=$pkgdir install
+ cd $pkgname-$pkgver/build
+ make DESTDIR="$pkgdir" install
}
diff --git a/community/libmirage/libmirage.install b/community/libmirage/libmirage.install
new file mode 100644
index 000000000..78659c470
--- /dev/null
+++ b/community/libmirage/libmirage.install
@@ -0,0 +1,11 @@
+post_install() {
+ update-mime-database usr/share/mime
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}
diff --git a/community/libmirage/soname.diff b/community/libmirage/soname.diff
new file mode 100644
index 000000000..213f788ef
--- /dev/null
+++ b/community/libmirage/soname.diff
@@ -0,0 +1,10 @@
+--- a/libmirage/CMakeLists.txt
++++ b/libmirage/CMakeLists.txt
+@@ -112,7 +112,8 @@
+ COMPILE_DEFINITIONS "${mirage_DEFS}"
+ LINK_FLAGS ${mirage_LDFLAGS_STR}
+ LIBRARY_OUTPUT_NAME mirage
+- SOVERSION ${MIRAGE_SOVERSION}
++ VERSION ${MIRAGE_SOVERSION}
++ SOVERSION ${MIRAGE_LT_CURRENT}
+ )