summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6b996fd598e4b608452ab2dbc3c9add3de568542 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Maintainer: Daniel Schopf <schopf.dan at gmail dot com>

pkgname=plasma6-applets-qalculate
pkgver=0.10.1
pkgrel=1
pkgdesc="Qalculate! applet for the KDE plasma desktop"
url="https://github.com/dschopf/plasma-applet-qalculate"
replaces=('plasma5-applets-qalculate')
license=('MIT')
depends=('libqalculate' 'plasma-workspace')
makedepends=('cmake' 'extra-cmake-modules')
arch=('i686' 'x86_64')
source=("$pkgname-$pkgver.tar.gz::https://github.com/dschopf/plasma-applet-qalculate/archive/v$pkgver.tar.gz")
sha256sums=('d47743422b60e923ffa905ac0f252ab2244343071e19132ec03cd15e3124219f')

build() {
    mkdir build
    cd build
    cmake "../plasma-applet-qalculate-$pkgver" \
          -DCMAKE_INSTALL_PREFIX=/usr \
          -DCMAKE_BUILD_TYPE=Release \
          -DCMAKE_INSTALL_LIBDIR=lib \
          -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
    make
}

package() {
    mkdir -p "$pkgdir/usr/share/licenses/$pkgname"
    cp "plasma-applet-qalculate-$pkgver/COPYING" "$pkgdir/usr/share/licenses/$pkgname/"
    cd build
    make DESTDIR="$pkgdir" install
}