]> saetta.ns0.it Git - msys2/commitdiff
libzakutilsgtk: nuovo pacchetto.
authorAndrea Zagli <azagli@libero.it>
Mon, 16 Oct 2023 10:06:20 +0000 (12:06 +0200)
committerAndrea Zagli <azagli@libero.it>
Mon, 16 Oct 2023 10:06:20 +0000 (12:06 +0200)
packages/mingw-w64-libzakutilsgtk/.gitignore [new file with mode: 0644]
packages/mingw-w64-libzakutilsgtk/PKGBUILD [new file with mode: 0644]

diff --git a/packages/mingw-w64-libzakutilsgtk/.gitignore b/packages/mingw-w64-libzakutilsgtk/.gitignore
new file mode 100644 (file)
index 0000000..0cf10cb
--- /dev/null
@@ -0,0 +1 @@
+libzakutilsgtk
diff --git a/packages/mingw-w64-libzakutilsgtk/PKGBUILD b/packages/mingw-w64-libzakutilsgtk/PKGBUILD
new file mode 100644 (file)
index 0000000..04f0043
--- /dev/null
@@ -0,0 +1,51 @@
+# Maintainer: Andrea Zagli <andrea.zagli.free@gmail.com>
+
+_realname=libzakutilsgtk
+_base_ver=0.0.1
+pkgbase=mingw-w64-${_realname}
+pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
+pkgver=0.0.1.9.19c6be4
+pkgrel=3
+arch=('any')
+pkgdesc="Library with some gtk utility functions (mingw-w64)"
+depends=("${MINGW_PACKAGE_PREFIX}-gtk3"
+               "${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=(git+http://saetta.ns0.it/git/${_realname}#branch=master)
+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}
+
+  export lt_cv_deplibs_check_method='pass_all'
+
+  ../${_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"
+}