# Contributor: Weng Xuetian # Maintainer: Yegorius pkgname=kmozillahelper pkgver=0.6.5 pkgrel=1 pkgdesc="Mozilla KDE Integration" url="https://github.com/openSUSE/kmozillahelper" arch=("i686" "x86_64") license=('MIT') depends=('ki18n' 'kio' 'knotifications' 'kwindowsystem') makedepends=('cmake' 'extra-cmake-modules' 'git' 'python') _gitcommit=83cd08e0c917fda16b30d91f929779304c46d273 source=("$pkgname-$pkgver-$pkgrel.tar.gz::$url/archive/$_gitcommit.tar.gz") sha256sums=('987b9a5b35e5f6bef36830184bd0ab2f200a7d7525216320a379ed1a1ef24b0f') prepare() { mv $srcdir/$pkgname-$_gitcommit $srcdir/$pkgname mkdir -p build } build() { cd build cmake ../$pkgname \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr make } package() { cd build make DESTDIR="$pkgdir" install cd ../$pkgname install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" }