summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 03ceee64c25623445d43c106ecaf2df17dc5fe3c (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Maintainer: Gary Wang <wzc782970009@gmail.com>

pkgname=pineapple-calendar-git
pkgver=r27.74e073e
pkgrel=1
pkgdesc='Plasmoid applet as a DigitalClock replacement with ability to display Chinese Lunar Calendar'
arch=('x86_64' 'aarch64')
url='https://github.com/BLumia/pineapple-calendar/'
license=('GPL')
depends=(
    'qt5-declarative'
    'icu'
    'plasma-workspace'
)
makedepends=(
    'git'
    'qt5-tools'
    'cmake'
    'extra-cmake-modules'
)
optdepends=(
)
source=(
    'git+https://github.com/BLumia/pineapple-calendar.git'
)
md5sums=(
    'SKIP'
)

pkgver() {
    cd ${srcdir}/pineapple-calendar

    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build () {
    cd ${srcdir}/pineapple-calendar
    cmake -DBUILD_PLASMOID=ON -DCMAKE_INSTALL_PREFIX=/usr .
    cmake --build . -j`nproc`
}

package() {
    DESTDIR="$pkgdir" cmake --build ${srcdir}/pineapple-calendar --target install/strip
    #make -C ${srcdir}/pineapple-pictures DESTDIR="$pkgdir" install
    cd ${srcdir}/pineapple-calendar
    #make INSTALL_ROOT="$pkgdir" install
    #install -Dm755 ./ppic ${pkgdir}/usr/bin/ppic
    mkdir -p ${pkgdir}/usr/share/licenses/pineapple-calendar-git
    touch ./LICENSE # placeholder, the plasmoid and QML c++ extension should be GPL-2.0-or-later
    install ./LICENSE ${pkgdir}/usr/share/licenses/pineapple-calendar-git/LICENSE
}