summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a94f873ce09c4a5ef727182b060f8930e544c0f1 (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
52
53
54
55
#! /bin/bash
url="https://github.com/sieren/QSyncthingTray"


pkgver() {
	commitsCount "${url}"
}


build() {
	cd "${srcdir}"
	git clone "${url}.git"

	cd "${srcdir}/${Name}"
	mkdir "build"
	cd "build"

	cmake ".."
	make
}


package() {
	mkdir --parents "${pkgdir}/usr/bin"
	mkdir --parents "${pkgdir}/usr/share/pixmaps"
	mkdir --parents "${pkgdir}/usr/share/applications"

	mv "${srcdir}/${Name}/build/${Name}" "${pkgdir}/usr/bin/${LowercaseName}"
	cp "${srcdir}/${Name}/resources/images/Icon1024.png" "${pkgdir}/usr/share/pixmaps/${LowercaseName}.png"
	cp "${srcdir}/${LowercaseName}.desktop" "${pkgdir}/usr/share/applications/${LowercaseName}.desktop"

	find "${pkgdir}" -type d -exec chmod u=rwx,g=rx,o=rx {} \;
	find "${pkgdir}" -type f -exec chmod u=rw,g=r,o=r {} \;
	chmod +x "${pkgdir}/usr/bin/${LowercaseName}"
}


Name="QSyncthingTray"
LowercaseName=$(echo "${Name,,}")
provides=("${LowercaseName}")
conflicts=("${LowercaseName}")
pkgname="${LowercaseName}-git"

pkgdesc="Syncs files among devices, and shows the sync status on a tray icon. Version with the latest unreleased improvements."
license=("LGPL3")

pkgver=$(pkgver)
pkgrel=3
arch=("i686" "x86_64")

makedepends=("cmake" "commits-count-git" "git")
depends=("qt5-location" "qt5-webengine" "startup-settings-git" "syncthing")
source=("${LowercaseName}.desktop")
md5sums=("SKIP")