summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2b70e7d7923f19f9e5e744d38b7b9815f93b0a9f (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.1.1.r1.g936eec8
pkgrel=1
pkgdesc="sync file picker bookmarks for KDE and GTK"
arch=(x86_64)
url="https://github.com/jlu5/bookmarksync"
license=('GPLv3')
makedepends=(git)
source=(git+https://github.com/jlu5/bookmarksync.git)
sha256sums=("SKIP")

build() {
    cd ${pkgname%-git}/src
    qmake
    make -j$(nproc)  # Read user's option from makepkg.conf? Example in notepadqq-git.
}

package() {
    install -D ${pkgname%-git}/src/bookmarksync "${pkgdir}/usr/bin/bookmarksync"
    install -D ${pkgname%-git}/bookmarksync.desktop "${pkgdir}/usr/share/applications/bookmarksync.desktop"
}

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