]> saetta.ns0.it Git - msys2/commitdiff
libzakconfi: nuovo pacchetto (da libconfi).
authorAndrea Zagli <andrea.zagli@email.it>
Fri, 22 Apr 2016 10:10:19 +0000 (12:10 +0200)
committerAndrea Zagli <andrea.zagli@email.it>
Fri, 22 Apr 2016 10:10:19 +0000 (12:10 +0200)
packages/mingw-w64-libzakconfi/.gitignore [new file with mode: 0644]
packages/mingw-w64-libzakconfi/PKGBUILD [new file with mode: 0644]

diff --git a/packages/mingw-w64-libzakconfi/.gitignore b/packages/mingw-w64-libzakconfi/.gitignore
new file mode 100644 (file)
index 0000000..d854913
--- /dev/null
@@ -0,0 +1 @@
+libzakconfi
diff --git a/packages/mingw-w64-libzakconfi/PKGBUILD b/packages/mingw-w64-libzakconfi/PKGBUILD
new file mode 100644 (file)
index 0000000..afde22c
--- /dev/null
@@ -0,0 +1,48 @@
+# Maintainer: Andrea Zagli <andrea.zagli.free@gmail.com>
+
+_realname=libzakconfi
+_base_ver=0.10.0
+pkgbase=mingw-w64-${_realname}
+pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
+pkgver=0.10.0.33.4f30d5b
+pkgrel=1
+arch=('any')
+pkgdesc="Library to manage configurations (mingw-w64)"
+depends=("${MINGW_PACKAGE_PREFIX}-libgdaex")
+makedepends=("${MINGW_PACKAGE_PREFIX}-gcc"
+             "gtk-doc"
+             "${MINGW_PACKAGE_PREFIX}-gnome-common")
+options=('!strip' 'debug' 'staticlibs')
+license=("LGPL 2.1")
+url="http://saetta.ns0.it/"
+source=("${_realname}"::"git+http://saetta.ns0.it/git/solipa/confi/libconfi#branch=namespace")
+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"
+}