New package: pinentry-dmenu-0.2.

closes #2226
This commit is contained in:
maxice8 2019-01-18 05:45:05 -02:00 committed by maxice8
parent 78ccf58b33
commit 5eefc2c540

View file

@ -0,0 +1,30 @@
# Template file for 'pinentry-dmenu'
pkgname=pinentry-dmenu
version=0.2
revision=1
build_style=gnu-makefile
makedepends="libXft-devel freetype-devel libconfig-devel
libXinerama-devel libgpg-error-devel libassuan-devel
gpgme-devel"
short_desc="Pinentry program based on dmenu"
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
license="GPL-2.0-or-later"
homepage="https://github.com/ritze/pinentry-dmenu"
distfiles="https://github.com/ritze/pinentry-dmenu/archive/${version}.tar.gz"
checksum=0f38f2bbcfaf3bfff4d11ee0fa1b5a8f50f87e8775cc6c7d757d566a02e33ff4
CFLAGS="-DXINERAMA -I${XBPS_CROSS_BASE}/usr/include"
CFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/X11"
CFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/freetype2"
LDFLAGS="-lfontconfig -lXft -lXinerama -lX11"
pre_build() {
[ -e ${FILESDIR}/config.h ] && cp ${FILESDIR}/config.h config.h
vsed -e "s|PACKAGE_VERSION|\"${version}\"|g" \
-e "s|VERSION|\"${version}\"|g" \
-e "s|PACKAGE_BUGREPORT|\"https:\/\/github.com\/ritze\/pinentry-dmenu\"|g" \
-i pinentry/pinentry.c
vsed -e "s|CC =.*|CC = ${CC}|g" -i config.mk
}