2019-01-18 07:45:05 +00:00
|
|
|
# Template file for 'pinentry-dmenu'
|
|
|
|
pkgname=pinentry-dmenu
|
2019-01-24 20:50:17 +00:00
|
|
|
version=0.2.1
|
2019-04-30 01:21:18 +00:00
|
|
|
revision=2
|
2019-01-18 07:45:05 +00:00
|
|
|
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"
|
2019-01-24 20:50:17 +00:00
|
|
|
checksum=cfcc8d52c89b2c50de18a1755e0191f34b690a4f2a62d43bcb0cde3853d3edc5
|
2019-01-18 07:45:05 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2019-01-24 20:50:17 +00:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
vsed -e "s|CC =.*|CC = ${CC}|g" -i config.mk
|
|
|
|
fi
|
2019-01-18 07:45:05 +00:00
|
|
|
}
|