upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / network-manager-sstp / trunk / PKGBUILD
blob56be482677bb57e00f75d161008c5f84ab6cc804
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Echizen Ryoma <echizenryoma.zhang@gmail.com>
3 # Contributor: Martchus <martchus@gmx.net>
5 pkgname=network-manager-sstp
6 pkgver=1.3.1
7 pkgrel=2
8 pkgdesc="SSTP support for NetworkManager"
9 arch=('x86_64')
10 url="https://gitlab.gnome.org/GNOME/network-manager-sstp"
11 license=('GPL2')
12 depends=('libsecret' 'sstp-client')
13 optdepends=('ppp'
14             'libnma: GUI support (GTK 3)'
15             'libnma-gtk4: GUI support (GTK 4)')
16 makedepends=('gtk3' 'gtk4' 'libnma' 'libnma-gtk4' 'intltool' 'ppp' 'python')
17 source=("https://gitlab.gnome.org/GNOME/network-manager-sstp/-/archive/release-$pkgver/network-manager-sstp-release-$pkgver.tar.bz2")
18 sha256sums=('20ff1422a8779b5825ea0198e0d4232a27ac9b15f2dcafc04124f26bef7864d6')
20 build() {
21   pppd_version=(`pppd --version 2>&1 | awk '{print $3}'`)
22   cd network-manager-sstp-release-$pkgver
24   ./autogen.sh \
25     --prefix=/usr \
26     --sysconfdir=/etc \
27     --with-pppd-plugin-dir=/usr/lib/pppd/$pppd_version \
28     --libdir=/usr/lib \
29     --libexecdir=/usr/lib/NetworkManager \
30     --with-libnm-glib=no \
31     --enable-more-warnings=yes \
32     --with-gtk4=yes
33   # libnm-glib disabled due to missing libnm-gtk package
34   # set_more_warnings being error by default, which adds -Werror
36   make
39 package() {
40   cd network-manager-sstp-release-$pkgver
42   make DESTDIR="$pkgdir" dbusservicedir=/usr/share/dbus-1/system.d install