diff --git a/nomad-firewall/PKGBUILD b/nomad-firewall/PKGBUILD new file mode 100644 index 000000000..156bdbf69 --- /dev/null +++ b/nomad-firewall/PKGBUILD @@ -0,0 +1,40 @@ +pkgname=nomad-firewall +pkgver=0.1.r68.gfb8937e +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=('kdeclarative' 'kcoreaddons' 'kcmutils' 'ki18n' 'plasma-framework' 'kdelibs4support' + 'kauth' 'kconfig' 'kio' 'knewstuff' 'kconfigwidgets' 'net-tools' 'ufw') +makedepends=('git' 'extra-cmake-modules' 'kdoctools') +replaces=(kcm-ufw) +provides=(kcm-ufw) +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/qt5/plugins/org.nxos.firewall.so" +}