From 5b55aa73989993c6c6e4f01ea40a7f42d42ec6f6 Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Tue, 16 Apr 2019 16:05:35 +0200 Subject: [PATCH] Pkg: aggiunto il pacchetto elettorale. --- packages/mingw-w64-elettorale/.gitignore | 1 + packages/mingw-w64-elettorale/PKGBUILD | 63 ++++++++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 packages/mingw-w64-elettorale/.gitignore create mode 100644 packages/mingw-w64-elettorale/PKGBUILD diff --git a/packages/mingw-w64-elettorale/.gitignore b/packages/mingw-w64-elettorale/.gitignore new file mode 100644 index 0000000..c45011e --- /dev/null +++ b/packages/mingw-w64-elettorale/.gitignore @@ -0,0 +1 @@ +elettorale diff --git a/packages/mingw-w64-elettorale/PKGBUILD b/packages/mingw-w64-elettorale/PKGBUILD new file mode 100644 index 0000000..27586c6 --- /dev/null +++ b/packages/mingw-w64-elettorale/PKGBUILD @@ -0,0 +1,63 @@ +# Maintainer: Andrea Zagli + +_realname=elettorale +_base_ver=0.0.1 +pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}" +pkgver=0.0.1.17.d8d3c8f +pkgrel=1 +arch=('any') +pkgdesc="Gestione registro elettorale (mingw-w64)" +depends=("${MINGW_PACKAGE_PREFIX}-gtk3" + "${MINGW_PACKAGE_PREFIX}-libsoup" + "${MINGW_PACKAGE_PREFIX}-libgdaex" + "${MINGW_PACKAGE_PREFIX}-libgdaexgrid" + "${MINGW_PACKAGE_PREFIX}-libzakform" + "${MINGW_PACKAGE_PREFIX}-libzakformgtk" + "${MINGW_PACKAGE_PREFIX}-libzakformgdaex" + "${MINGW_PACKAGE_PREFIX}-libzakformgtkdecoder" + "${MINGW_PACKAGE_PREFIX}-libzakformhashtable" + "${MINGW_PACKAGE_PREFIX}-libzakauthe" + "${MINGW_PACKAGE_PREFIX}-libzakautho" + "${MINGW_PACKAGE_PREFIX}-libsolipa" + "${MINGW_PACKAGE_PREFIX}-libzakaudit" + "${MINGW_PACKAGE_PREFIX}-territorio" + "${MINGW_PACKAGE_PREFIX}-libreptool" + "${MINGW_PACKAGE_PREFIX}-libzakutils" + "${MINGW_PACKAGE_PREFIX}-libzakconfi") +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/~andreaz/git/${_realname}/be) +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" +} -- 2.49.0