mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
39 lines
1.0 KiB
Bash
39 lines
1.0 KiB
Bash
pkgname=kcm-ufw
|
|
_pkgname=ufw-kde
|
|
pkgver=0.5.0
|
|
pkgrel=3
|
|
pkgdesc="UFW KControl Module"
|
|
arch=('x86_64')
|
|
url="http://kde-apps.org/content/show.php/UFW+KControl+Module?content=137789"
|
|
license=('GPL')
|
|
depends=('ufw' 'kdelibs' 'python3' 'openssl' 'polkit-kde-agent')
|
|
makedepends=('automoc4' 'cmake' 'docbook-xsl')
|
|
categories=('network')
|
|
source=("https://launchpad.net/ubuntu/+archive/primary/+files/ufw-kde_${pkgver}.orig.tar.gz"
|
|
'ufw.desktop')
|
|
sha256sums=('d5436b2ffc41599aeab65bc6ac6fbcc19d99074bf0076c8a4d25649391b601bb'
|
|
'29ae454388cc9ad4dcdf9cfe423041a50fbf1a65480cf82c4b59a8beb840f332')
|
|
|
|
prepare() {
|
|
cd "${srcdir}/${_pkgname}-${pkgver}/"
|
|
if [[ ! -d build ]] ; then
|
|
mkdir build
|
|
else
|
|
rm build && mkdir build
|
|
fi
|
|
}
|
|
|
|
build() {
|
|
cd "${srcdir}/${_pkgname}-${pkgver}/build"
|
|
|
|
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${_pkgname}-${pkgver}/build"
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
install -Dm644 $srcdir/ufw.desktop $pkgdir/usr/share/applications/ufw.desktop
|
|
}
|