void-packages/srcpkgs/gpgme/template
2016-12-20 10:02:25 +00:00

57 lines
1.6 KiB
Bash

# Template file for 'gpgme'
pkgname=gpgme
version=1.7.1
revision=2
build_style=gnu-configure
configure_args="--enable-fd-passing --disable-gpgconf-test
--disable-gpg-test --disable-gpgsm-test
--with-libgpg-error-prefix=$XBPS_CROSS_BASE/usr
--with-libassuan-prefix=$XBPS_CROSS_BASE/usr"
makedepends="libgpg-error-devel libassuan-devel"
depends="gnupg2"
short_desc="GnuPG Made Easy"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2"
homepage="http://www.gnupg.org/related_software/gpgme/"
distfiles="ftp://ftp.gnupg.org/gcrypt/gpgme/gpgme-$version.tar.bz2"
checksum=d0abe1449395315eac37e4e45076bbb82732cedf94210937b37776e10cdc2bb6
case "$XBPS_TARGET_MACHINE" in
*-musl) configure_args+=" ac_cv_sys_file_offset_bits=no";;
i686*|arm*)
CFLAGS="-D_FILE_OFFSET_BITS=64 -DLARGEFILE_SOURCE=1"
CXXFLAGS="${CFLAGS}"
;;
esac
gpgme-devel_package() {
depends="${makedepends} gpgme>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/bin/gpgme-config
vmove usr/include/gpgme.h
vmove usr/share
vmove usr/lib/libgpgme.so
vmove usr/lib/libgpgme-pthread.so
}
}
gpgmepp_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - C++ library"
pkg_install() {
vmove usr/lib/libgpgmepp.so.*
}
}
gpgmepp-devel_package() {
depends="gpgme-devel>=${version}_${revision} gpgmepp>=${version}_${revision}"
short_desc+=" - C++ library development files"
pkg_install() {
vmove usr/include/gpgmepp_version.h
vmove usr/include/gpgme++
vmove usr/lib/libgpgmepp.so
vmove usr/lib/cmake/Gpgmepp/GpgmeppConfig.cmake
vmove usr/lib/cmake/Gpgmepp/GpgmeppConfigVersion.cmake
}
}