--- /dev/null
+# 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"
+}