]> saetta.ns0.it Git - msys2/commitdiff
libzakformhashtable: nuovo pacchetto.
authorAndrea Zagli <andrea.zagli@email.it>
Wed, 15 Feb 2017 09:45:05 +0000 (10:45 +0100)
committerAndrea Zagli <andrea.zagli@email.it>
Wed, 15 Feb 2017 09:45:05 +0000 (10:45 +0100)
packages/mingw-w64-libzakformhashtable/.gitignore [new file with mode: 0644]
packages/mingw-w64-libzakformhashtable/PKGBUILD [new file with mode: 0644]

diff --git a/packages/mingw-w64-libzakformhashtable/.gitignore b/packages/mingw-w64-libzakformhashtable/.gitignore
new file mode 100644 (file)
index 0000000..bf6a96c
--- /dev/null
@@ -0,0 +1 @@
+libzakformhashtable
diff --git a/packages/mingw-w64-libzakformhashtable/PKGBUILD b/packages/mingw-w64-libzakformhashtable/PKGBUILD
new file mode 100644 (file)
index 0000000..672da25
--- /dev/null
@@ -0,0 +1,49 @@
+# Maintainer: Andrea Zagli <andrea.zagli.free@gmail.com>
+
+_realname=libzakformhashtable
+_base_ver=0.0.1
+pkgbase=mingw-w64-${_realname}
+pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
+pkgver=0.0.1.3.261cb59
+pkgrel=1
+arch=('any')
+pkgdesc="Library to manage forms - GHashTable provider (mingw-w64)"
+depends=("${MINGW_PACKAGE_PREFIX}-libzakform"
+         "${MINGW_PACKAGE_PREFIX}-libzakutils")
+makedepends=("${MINGW_PACKAGE_PREFIX}-gcc"
+             "gtk-doc")
+options=('!strip' 'debug' 'staticlibs')
+license=("LGPL 2.1")
+url="http://saetta.ns0.it/"
+source=(${_realname}::git+http://saetta.ns0.it/git/zakform/hashtable)
+sha256sums=('SKIP')
+
+pkgver() {
+  cd "$srcdir/$_realname"
+  printf "%s.%s.%s" "${_base_ver}" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+  cd ${_realname}
+
+}
+
+build() {
+  mkdir -p build-${MINGW_CHOST}
+  cd build-${MINGW_CHOST}
+
+  ../${_realname}/autogen.sh \
+    --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}/COPYING" "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/COPYING"
+}