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

diff --git a/packages/mingw-w64-mm-common/PKGBUILD b/packages/mingw-w64-mm-common/PKGBUILD
new file mode 100644 (file)
index 0000000..e4e900c
--- /dev/null
@@ -0,0 +1,40 @@
+# Maintainer: Andrea Zagli <andrea.zagli.free@gmail.com>
+
+_realname=mm-common
+pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
+pkgver=0.9.7
+pkgrel=1
+pkgdesc="Common build files of the GNOME C++ bindings (mingw-w64)"
+arch=('any')
+url="http://www.gtkmm.org/"
+license=("GPL 2")
+depends=("${MINGW_PACKAGE_PREFIX}-wget")
+options=(strip staticlibs)
+source=(http://ftp.gnome.org/pub/gnome/sources/${_realname}/${pkgver:0:3}/${_realname}-${pkgver}.tar.xz)
+sha256sums=('78f47336f3bdf034a384c59a39cc9f0d566e69e36aa7c9ee3ec0bb6a94bf8b3e')
+
+prepare() {
+  cd ${_realname}-$pkgver
+
+  autoreconf -fi
+}
+
+build() {
+  [[ -d build-${MINGW_CHOST} ]] && rm -rf build-${MINGW_CHOST}
+  mkdir -p "${srcdir}/build-${MINGW_CHOST}"
+  cd "${srcdir}/build-${MINGW_CHOST}"
+
+  ../${_realname}-${pkgver}/configure \
+    --prefix=${MINGW_PREFIX} \
+    --build=${MINGW_CHOST} \
+    --host=${MINGW_CHOST} \
+    --enable-network
+  make
+}
+
+package() {
+  cd "${srcdir}/build-${MINGW_CHOST}"
+  make DESTDIR="$pkgdir" install
+
+  install -Dm644 "${srcdir}/${_realname}-${pkgver}/COPYING" "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/COPYING"
+}