mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-23 17:53:12 +08:00
import nomad-firewall
This commit is contained in:
parent
a08251fd49
commit
491ecdaeac
40
nomad-firewall/PKGBUILD
Normal file
40
nomad-firewall/PKGBUILD
Normal file
@ -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"
|
||||
}
|
Loading…
Reference in New Issue
Block a user