]> saetta.ns0.it Git - msys2/commitdiff
gnome-js-common: nuovo pacchetto WIP.
authorAndrea Zagli <azagli@libero.it>
Sun, 10 May 2015 13:45:02 +0000 (15:45 +0200)
committerAndrea Zagli <azagli@libero.it>
Sat, 21 Apr 2018 13:14:27 +0000 (15:14 +0200)
packages/mingw-w64-gnome-js-common/PKGBUILD [new file with mode: 0644]

diff --git a/packages/mingw-w64-gnome-js-common/PKGBUILD b/packages/mingw-w64-gnome-js-common/PKGBUILD
new file mode 100644 (file)
index 0000000..fa9ff41
--- /dev/null
@@ -0,0 +1,40 @@
+# 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"
+}