summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e1388252571f3e1de072db0a7470976ead5e512e (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
_pkgname=croco-assistant
pkgname=${_pkgname}-git
pkgver=r50.6d7c16b
pkgrel=1
pkgdesc="A assistant app for Croco OS"
arch=('any')
url="https://gitlab.com/croco-os/applications/croco-assistant"
license=('GPL3')
depends=('qt5-base' 'xdg-utils' 'polkit' 'alacritty' 'micro' 'reflector-simple' 'hblock' 'xorg-xdpyinfo' 'pace' 'pamac')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
groups=('croco-git')
source=("repo::git+https://gitlab.com/croco-os/applications/${_pkgname}.git")
md5sums=('SKIP')

pkgver() {
        cd "$srcdir/repo"
# Git, no tags available
        printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
        cd "$srcdir/repo"
        qmake-qt5 ${_pkgname}.pro
        make
}

package() {
        cd "$srcdir/repo"
        make INSTALL_ROOT=${pkgdir} install
}