summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 451d121f8dedb87683e2125f107bc7302499a5fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# Contributor: Tom Nguyen <tom81094@gmail.com>
# Contributor: lyoko

_pkgbase='networkmanager-ssh'
pkgname="${_pkgbase}-git"
pkgver=r270.d7996e7
pkgrel=4
pkgdesc="OpenSSH VPN tunneling support for NetworkManager - git version, gtk4 port"
arch=('x86_64')
_repourl='https://github.com/NetworkManager/NetworkManager-ssh'
_repobranch='lr/gtk-4.0'
url="${_repourl}/tree/${_repobranch}"
license=('GPL2')
depends=(
  'at-spi2-core'
  'cairo'
  'gdk-pixbuf2'
  'glib2'
  'glibc'
  'graphene'
  'gtk3'      # still needed by auth_dialog; might become superfluous later
  'gtk4'
  'harfbuzz'
  'libnm'
  'libnma'    # still required by some components; might become superfluous later
  'libnma-gtk4'
  'libsecret'
  'networkmanager'
  'pango'
  'zlib'
)
makedepends=(
  'git'
  'intltool'
)
optdepends=(
  'nm-connection-editor: config GUI for GNOME'
)
provides=("${_pkgbase}")
conflicts=("${_pkgbase}")
source=("${_pkgbase}::git+${_repourl}.git#branch=${_repobranch}")
b2sums=('SKIP')

pkgver() {
  cd "${_pkgbase}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  cd "${_pkgbase}"
  echo 'executing autoreconf...'
  autoreconf -fvi
  echo 'autoreconf done.'
  echo
  echo 'executing configure...'
  ./configure \
    --prefix=/usr \
    --sysconfdir=/etc \
    --libdir=/usr/lib \
    --libexecdir=/usr/lib/NetworkManager \
    --disable-static \
    --disable-dependency-tracking \
    --enable-more-warnings=no \
    --with-gtk4 \
    --without-libnm-glib
  echo 'configure done.'
}

build() {
  cd "${_pkgbase}"
  make
}

package() {
  depends+=('openssh')
  cd "${_pkgbase}"
  make DESTDIR="$pkgdir/" INSTALL="install -p" CP="cp -p" install
}