mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-03 07:07:14 +08:00
41 lines
1.1 KiB
Bash
41 lines
1.1 KiB
Bash
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"
|
|
}
|