summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a3cc54ceebe31996649c2c2677c9a87bc611690e (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

# Maintainer: maz-1 <ohmygod19993 at gmail dot com>

_pkgname=nomad-firewall
pkgname=nomad-firewall-git
pkgver=0.1.r116.gdbe0809
pkgrel=1
pkgdesc="kcm module for firewall from nomad desktop"
arch=('i686' 'x86_64')
url="https://github.com/nomad-desktop/nomad-firewall"
license=('GPL3')
depends=(
  'kauth5'
  'kcmutils5'
  'kconfig5'
  'kconfigwidgets5'
  'kcoreaddons5'
  'kdeclarative5'
  'kdelibs4support'
  'ki18n5'
  'kio5'
  'knewstuff5'
  'net-tools'
  'plasma-framework5'
  'ufw'
)
makedepends=(
  'extra-cmake-modules'
  'git'
  'kdesignerplugin'
  'kdoctools5'
)
source=('git+https://github.com/nomad-desktop/nomad-firewall.git')
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$_pkgname"
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  mkdir -p "$srcdir/build"
  cd "$srcdir/build"

  cmake "$srcdir/$_pkgname" \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DKDE_INSTALL_LIBDIR=lib \
    -DKDE_INSTALL_LIBEXECDIR=lib \
    -DKDE_INSTALL_SYSCONFDIR=/etc \
    -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
    -DBUILD_TESTING=OFF 
  make
}

package() {
  cd "$srcdir/build"
  make DESTDIR="$pkgdir/" install
  ln -s kcms/org.nxos.firewall.so "$pkgdir/usr/lib/qt/plugins/org.nxos.firewall.so"
}