From d9e357b7c638ba543795b3083c576b90f9261855 Mon Sep 17 00:00:00 2001 From: ed neville Date: Tue, 8 Dec 2020 18:06:09 +0000 Subject: [PATCH] New package: pleaser-0.3.17 --- srcpkgs/pleaser/template | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 srcpkgs/pleaser/template diff --git a/srcpkgs/pleaser/template b/srcpkgs/pleaser/template new file mode 100644 index 00000000000..6fb7246fd19 --- /dev/null +++ b/srcpkgs/pleaser/template @@ -0,0 +1,29 @@ +# Template file for 'pleaser' +pkgname=pleaser +_binary=please +version=0.3.17 +revision=1 +wrksrc="${_binary}-v${version}" +build_style=cargo +makedepends="cmake llvm clang pam-devel" +short_desc="Polite and easy to configure regex-first sudo alternative " +maintainer="Ed Neville " +license="GPL-3.0-or-later" +homepage="https://www.usenix.org.uk/content/please.html" +distfiles="https://gitlab.com/edneville/${_binary}/-/archive/v${version}/${_binary}-v${version}.tar.gz" +checksum=55a96329b85cdf2e28ada0dfe85f1219aafa4dc88513ceb99f87685de0ca676f + +pre_build() { + export CFLAGS_${RUST_BUILD//-/_}="${CFLAGS_host}" + export CC_${RUST_BUILD//-/_}="${BUILD_CC}" +} + +post_install() { + local manpage + vdoc README.md + manpage=$(find ${wrksrc} -name please.ini.5) + vman ${manpage} + manpage=$(find ${wrksrc} -name please.1) + vman ${manpage} + chmod 6755 $DESTDIR/usr/bin/please $DESTDIR/usr/bin/pleaseedit +}