New package: opmsg-1.78s

closes #5908
This commit is contained in:
travankor 2018-12-14 16:11:05 -07:00 committed by maxice8
parent 32cdfd05eb
commit 8525e54bae
No known key found for this signature in database
GPG key ID: 543B9D4F4299F06B

29
srcpkgs/opmsg/template Normal file
View file

@ -0,0 +1,29 @@
# Template file for 'opmsg'
pkgname=opmsg
version=1.78s
revision=1
wrksrc="${pkgname}-rel-${version}"
build_wrksrc=src
build_style=gnu-makefile
make_use_env=yes
makedepends="libressl-devel"
short_desc="Replacement for gpg which can encrypt/sign/verify your mails"
maintainer="travankor <travankor@tuta.io>"
license="GPL-3.0-or-later"
homepage="https://github.com/stealth/opmsg"
distfiles="https://github.com/stealth/opmsg/archive/rel-${version}.tar.gz"
checksum=e5dd6aaafddceb1c9eda755acc6763f91a2d724bd6b58214d198c9e72c8043da
do_configure() {
vsed -e "s|^INC=.*|INC += -I${XBPS_CROSS_BASE}/usr/include|" \
-e "10iLIBS+=-L${XBPS_CROSS_BASE}/usr/lib" \
-e 's|^DEFS=$|DEFS += -DHAVE_LIBRESSL|' \
-e "s|^LDFLAGS=$|LDFLAGS+=-L${XBPS_CROSS_BASE}/usr/lib|" \
-e "s|^CXX=c++$|CXX=${CXX}|" \
-e 's|^LD=c++$|LD=$(CXX)|' \
-i Makefile
}
do_install() {
vbin opmsg
}