summaryrefslogtreecommitdiff
path: root/community/libmirage
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2013-12-27 23:55:53 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2013-12-27 23:55:53 +0000
commit65eeff79fff8a1bfdf67ca51d147384f46f4d5c0 (patch)
treefbfdff322b28d9a3c37e6e31c94caf1d8e48dac1 /community/libmirage
parentd53c44f055929b18d7d1b25f8367ee5836c435fc (diff)
Fri Dec 27 23:54:04 UTC 2013
Diffstat (limited to 'community/libmirage')
-rw-r--r--community/libmirage/PKGBUILD17
-rw-r--r--community/libmirage/missing-xml.patch24
2 files changed, 35 insertions, 6 deletions
diff --git a/community/libmirage/PKGBUILD b/community/libmirage/PKGBUILD
index aab6f10ea..0d0faa344 100644
--- a/community/libmirage/PKGBUILD
+++ b/community/libmirage/PKGBUILD
@@ -1,11 +1,11 @@
-# $Id: PKGBUILD 99858 2013-10-31 02:07:43Z allan $
+# $Id: PKGBUILD 102784 2013-12-20 01:20:37Z 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=2.1.0
-pkgrel=2
+pkgver=2.1.1
+pkgrel=1
pkgdesc="CD-ROM image (B6T/C2D/CCD/CDI/CIF/CUE/ISO/MDS/MDX/NRG/TOC) access library"
arch=(i686 x86_64)
url="http://cdemu.sourceforge.net/"
@@ -13,11 +13,15 @@ license=(GPL)
depends=(glib2 libsndfile libsamplerate zlib bzip2 xz shared-mime-info)
makedepends=(gtk-doc gobject-introspection cmake)
install=libmirage.install
-source=(http://downloads.sourceforge.net/cdemu/$pkgname-$pkgver.tar.bz2)
-sha256sums=('fb30eea15b8c1fc55e194e1af55127fa3b3860a79fec0b6c60588cf9ae8d1ca9')
+source=(http://downloads.sourceforge.net/cdemu/$pkgname-$pkgver.tar.bz2
+ missing-xml.patch)
+sha256sums=('f606391095200df510b923201881bfbadb6ab032035ce9a67aa24fcae3145108'
+ 'c20e5d8d0695e3832971646eef2d735f1d12a4da767da1ff4f9c9af92ad7ad02')
prepare() {
mkdir build
+ cd $pkgname-$pkgver
+ patch -Np2 -i ../missing-xml.patch
}
build() {
@@ -25,7 +29,8 @@ build() {
cmake ../$pkgname-$pkgver \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_INSTALL_LIBDIR=lib
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DPOST_INSTALL_HOOKS:BOOL=OFF
make
}
diff --git a/community/libmirage/missing-xml.patch b/community/libmirage/missing-xml.patch
new file mode 100644
index 000000000..58dfebfeb
--- /dev/null
+++ b/community/libmirage/missing-xml.patch
@@ -0,0 +1,24 @@
+diff --git i/libmirage/src/filters/filter-daa/CMakeLists.txt w/libmirage/src/filters/filter-daa/CMakeLists.txt
+index ebd2890..e7021c1 100644
+--- i/libmirage/src/filters/filter-daa/CMakeLists.txt
++++ w/libmirage/src/filters/filter-daa/CMakeLists.txt
+@@ -35,6 +35,7 @@ if (${ZLIB_FOUND})
+
+ # Install MIME type
+ install(FILES "libmirage-${filter_short}.xml" DESTINATION ${CMAKE_INSTALL_DATADIR}/mime/packages)
++ install(FILES "libmirage-gbi.xml" DESTINATION ${CMAKE_INSTALL_DATADIR}/mime/packages)
+ if (POST_INSTALL_HOOKS)
+ install(CODE "execute_process (COMMAND ${UPDATE_MIME_DATABASE_EXECUTABLE} ${CMAKE_INSTALL_FULL_DATADIR}/mime)")
+ endif ()
+diff --git i/libmirage/src/parsers/image-mds/CMakeLists.txt w/libmirage/src/parsers/image-mds/CMakeLists.txt
+index c97be8f..bb0ee2b 100644
+--- i/libmirage/src/parsers/image-mds/CMakeLists.txt
++++ w/libmirage/src/parsers/image-mds/CMakeLists.txt
+@@ -20,6 +20,7 @@ if (TRUE)
+
+ # Install MIME type
+ install(FILES "libmirage-${parser_short}.xml" DESTINATION ${CMAKE_INSTALL_DATADIR}/mime/packages)
++ install(FILES "libmirage-xmd.xml" DESTINATION ${CMAKE_INSTALL_DATADIR}/mime/packages)
+ if (POST_INSTALL_HOOKS)
+ install(CODE "execute_process (COMMAND ${UPDATE_MIME_DATABASE_EXECUTABLE} ${CMAKE_INSTALL_FULL_DATADIR}/mime)")
+ endif ()