void-packages/srcpkgs/NetworkManager-pptp/template

27 lines
951 B
Bash

# Template file for 'NetworkManager-pptp'
pkgname=NetworkManager-pptp
version=1.2.8
revision=3
build_style=gnu-configure
configure_args="--without-libnm-glib"
hostmakedepends="pkg-config intltool glib-devel"
makedepends="libglib-devel gtk+3-devel libsecret-devel ppp-devel
network-manager-applet-devel NetworkManager-devel"
depends="pptpclient"
short_desc="NetworkManager VPN plugin for pptp"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://wiki.gnome.org/Projects/NetworkManager"
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=f8e35e4a9a76312975c317cd315e5e9bd23bba2b5c31c3259c8c150583dc1953
do_configure() {
PPP_VERSION=$(sed -n '/VERSION/s/.*"\(.*\)".*/\1/p' ${XBPS_CROSS_BASE}/usr/include/pppd/patchlevel.h)
./configure ${configure_args} --with-pppd-plugin-dir=/usr/lib/pppd/${PPP_VERSION}
}
post_install() {
mv $DESTDIR/etc/dbus-1 $DESTDIR/usr/share
}