summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 14eb31744b284fdea2e302063f39b5db98bc6941 (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
# Maintainer: Andrew Shark <ashark @ at @ linuxcomp.ru>

pkgname=bookmarksync-git
pkgver=0.3.0.r13.g3f716de
pkgrel=1
pkgdesc="Sync file picker bookmarks (pinned folders) for KDE and GTK"
arch=(x86_64)
url="https://github.com/jlu5/bookmarksync"
license=('GPLv3')
depends=(qt6-base)
makedepends=(cmake git kiconthemes kio)
source=(git+https://github.com/jlu5/bookmarksync.git)
sha256sums=("SKIP")

build() {
    cmake -B build -S ${pkgname%-git} -D CMAKE_INSTALL_PREFIX=/usr
    cmake --build build
}

package() {
    DESTDIR="$pkgdir" cmake --install build
}

pkgver() {
    cd "${pkgname%-git}"
    git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}