summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 99afafad059a9af549f1fd2124d8d71362382331 (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
# Maintainer: Duong Do Minh Chau <duongdominhchau@gmail.com>
pkgname=gitqlient-git
pkgver=v1.5.0.r14.6c076511
pkgrel=1
pkgdesc="Development branch of GitQlient"
arch=(x86_64)
url="https://github.com/francescmm/GitQlient"
license=('LGPL')
depends=(git qt5-base)
provides=(gitqlient)
conflicts=(gitqlient)
source=("git+https://github.com/francescmm/GitQlient#branch=master")
sha256sums=(SKIP)
_rootdir=GitQlient

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

prepare() {
    cd "$_rootdir"
    git submodule update --init
}

build() {
    cd "$_rootdir"
    qmake PREFIX="/usr"
    make
}

package() {
    cd "$_rootdir"
    make INSTALL_ROOT="${pkgdir}" install
    install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/gitqlient"
}