--- /dev/null
+# Maintainer: Andrea Zagli <andrea.zagli.free@gmail.com>
+
+_realname=quvi
+pkgname=${MINGW_PACKAGE_PREFIX}-${_realname}
+pkgver=0.4.2
+pkgrel=1
+pkgdesc="A command line tool for parsing Adobe Flash media stream URLs (mingw-w64)"
+arch=('any')
+license=('LGPL 2')
+url="http://www.gnome.org/"
+depends=("${MINGW_PACKAGE_PREFIX}-libquvi)
+makedepends=()
+options=('strip' 'staticlibs')
+source=(http://sourceforge.net/projects/quvi/files/${pkgver%.*}/quvi/${_realname}-${pkgver}.tar.xz
+ 001-win.patch)
+sha256sums=('b5862f7e5fa6ed7defd169adb5c7586c6406af86e029671fd09615f6eb7aa903'
+ 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855')
+
+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}
+
+ #mkdir -p docs/reference/html
+ #cp -rf ../${_realname}-${pkgver}/docs/reference/html/* docs/reference/html
+
+ ../${_realname}-${pkgver}/configure \
+ --host=${MINGW_CHOST} \
+ --target=${MINGW_CHOST} \
+ --build=${MINGW_CHOST} \
+ --prefix=${MINGW_PREFIX} \
+ --libexecdir=${MINGW_PREFIX}/lib
+ make
+}
+
+package() {
+ cd "$srcdir/build-${MINGW_CHOST}"
+ make DESTDIR=$pkgdir install
+
+ install -Dm644 "${srcdir}/${_realname}-${pkgver}/COPYING" "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/COPYING"
+}