From 97846bb6d3daccc0874b912bd177b737893980f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20Dupr=C3=A9Bertoni?= Date: Sat, 1 Aug 2020 13:00:49 +0300 Subject: [PATCH] New package: kwallet-cli-3.02 --- srcpkgs/kwallet-cli/patches/GNUmakefile.patch | 6 ++++ srcpkgs/kwallet-cli/template | 30 +++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 srcpkgs/kwallet-cli/patches/GNUmakefile.patch create mode 100644 srcpkgs/kwallet-cli/template diff --git a/srcpkgs/kwallet-cli/patches/GNUmakefile.patch b/srcpkgs/kwallet-cli/patches/GNUmakefile.patch new file mode 100644 index 00000000000..810b32c7e3f --- /dev/null +++ b/srcpkgs/kwallet-cli/patches/GNUmakefile.patch @@ -0,0 +1,6 @@ +--- GNUmakefile ++++ GNUmakefile +@@ -61 +61,2 @@ +-CPPFLAGS+= ${KDE_INCS} -D_GNU_SOURCE ++CPPFLAGS+= ${KDE_INCS} -fPIC -D_GNU_SOURCE ++LDFLAGS+= -fPIC diff --git a/srcpkgs/kwallet-cli/template b/srcpkgs/kwallet-cli/template new file mode 100644 index 00000000000..6f1b425ebc5 --- /dev/null +++ b/srcpkgs/kwallet-cli/template @@ -0,0 +1,30 @@ +# Template file for 'kwallet-cli' +pkgname=kwallet-cli +version=3.02 +revision=1 +archs="i686* x86_64*" +wrksrc=kwalletcli +build_style=gnu-makefile +make_build_args="KDE_VER=5" +hostmakedepends="pkg-config" +makedepends="kwallet-devel qt5-devel" +depends="mksh" +short_desc="Command-line interface to the KDE Wallet" +maintainer="Louis Dupré Bertoni " +license="custom:MirOS, LGPL-3.0-or-later" +homepage="https://www.mirbsd.org/kwalletcli.htm" +distfiles="http://www.mirbsd.org/MirOS/dist/hosted/kwalletcli/kwalletcli-${version}.tar.gz" +checksum=f6bebf802d6d575b0871c01dc1cbcc0f182d26cdce28449da426a503a257d216 + +post_patch() { + vsed -i GNUmakefile -e "s|-I/usr/include|-I${XBPS_CROSS_BASE}/usr/include|g" +} + +pre_install() { + vmkdir usr/bin + vmkdir usr/share/man/man1 +} + +post_install() { + vlicense LICENCE +}