--- /dev/null
+# Maintainer: Andrea Zagli <andrea.zagli.free@gmail.com>
+
+_realname=gnome-js-common
+pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
+pkgver=0.1.2
+pkgrel=1
+arch=('any')
+pkgdesc="GNOME JavaScript common modules and tests (mingw-w64)"
+options=(strip staticlibs)
+license=("LGPL 3")
+url="http://www.gnome.org"
+source=(http://ftp.gnome.org/pub/gnome/sources/${_realname}/${pkgver:0:3}/${_realname}-$pkgver.tar.bz2)
+sha256sums=('1765be99f3d83cc57e1ec13a2bb963469b8e91b60239eeaab61d66d7744496e6')
+
+prepare() {
+ cd "${srcdir}"/${_realname}-${pkgver}
+
+ 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
+}
+
+package() {
+ cd "$srcdir/build-${MINGW_CHOST}"
+ make DESTDIR=$pkgdir install
+
+ install -Dm644 "${srcdir}/${_realname}-${pkgver}/COPYING" "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/COPYING"
+}