summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 99cc304c2fb46fa52428c040ef288bfa7dd54d71 (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
# Maintainer: Andrew Shark <ashark @ at @ linuxcomp.ru>
pkgname=bookmarksync-git
pkgver=0.1.1.r9.g1d21df0
pkgrel=2
pkgdesc="sync file picker bookmarks for KDE and GTK"
arch=(x86_64)
url="https://github.com/jlu5/bookmarksync"
license=('GPLv3')
depends=(qt5-base)
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'
}