]> saetta.ns0.it Git - msys2/commitdiff
libquvi: nuovo pacchetto WIP.
authorAndrea Zagli <azagli@libero.it>
Wed, 8 Apr 2015 08:41:24 +0000 (10:41 +0200)
committerAndrea Zagli <azagli@libero.it>
Sat, 21 Apr 2018 13:13:22 +0000 (15:13 +0200)
packages/mingw-w64-libquvi/001-win.patch [new file with mode: 0644]
packages/mingw-w64-libquvi/PKGBUILD [new file with mode: 0644]

diff --git a/packages/mingw-w64-libquvi/001-win.patch b/packages/mingw-w64-libquvi/001-win.patch
new file mode 100644 (file)
index 0000000..ac26845
--- /dev/null
@@ -0,0 +1,9 @@
+--- ./src/libquvi/Makefile.am.orig     2012-03-23 15:09:02.000000000 +0100
++++ ./src/libquvi/Makefile.am  2015-04-08 10:18:43.253986000 +0200
+@@ -40,4 +40,5 @@
+  $(LIBICONV) \
+  $(LTLIBICONV) \
+  -version-info $(LIBQUVI_CURRENT):$(LIBQUVI_REVISION):$(LIBQUVI_AGE) \
+- $(AM_LDFLAGS)
++ $(AM_LDFLAGS) \
++ -no-undefined
diff --git a/packages/mingw-w64-libquvi/PKGBUILD b/packages/mingw-w64-libquvi/PKGBUILD
new file mode 100644 (file)
index 0000000..66ded39
--- /dev/null
@@ -0,0 +1,47 @@
+# Maintainer: Andrea Zagli <andrea.zagli.free@gmail.com>
+
+_realname=libquvi
+pkgname=${MINGW_PACKAGE_PREFIX}-${_realname}
+pkgver=0.4.1
+pkgrel=1
+pkgdesc="A cross-platform library for parsing media stream URLs with C API (mingw-w64)"
+arch=('any')
+license=('LGPL 2')
+url="http://www.gnome.org/"
+depends=("${MINGW_PACKAGE_PREFIX}-libquvi-scripts"
+         "${MINGW_PACKAGE_PREFIX}-curl"
+         "${MINGW_PACKAGE_PREFIX}-libsoup")
+makedepends=()
+options=('strip' 'staticlibs')
+source=(http://sourceforge.net/projects/quvi/files/${pkgver%.*}/libquvi/${_realname}-${pkgver}.tar.xz
+        001-win.patch)
+sha256sums=('b5862f7e5fa6ed7defd169adb5c7586c6406af86e029671fd09615f6eb7aa903'
+            '3a679509fa717984c2e73c103492f7c6463c4f1da9da684ebb88cc5fe0b22ad6')
+
+prepare() {
+  cd "${srcdir}"/${_realname}-${pkgver}
+
+  patch -b -V simple -p1 -i ${srcdir}/001-win.patch
+
+  autoreconf -f -i
+}
+
+build() {
+  mkdir -p build-${MINGW_CHOST}
+  cd build-${MINGW_CHOST}
+
+  ../${_realname}-${pkgver}/configure \
+    --host=${MINGW_CHOST} \
+    --target=${MINGW_CHOST} \
+    --build=${MINGW_CHOST} \
+    --prefix=${MINGW_PREFIX} \
+    --libexecdir=${MINGW_PREFIX}/lib
+  make V=1
+}
+
+package() {
+  cd "$srcdir/build-${MINGW_CHOST}"
+  make DESTDIR=$pkgdir install
+
+  install -Dm644 "${srcdir}/${_realname}-${pkgver}/COPYING" "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/COPYING"
+}