summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6a1295cf54efa691918b812fa4919397d4b09053 (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
pkgname=polaric-connect
pkgver=r4.4be4173
pkgrel=1
arch=('i686' 'x86_64')
pkgdesc="Utility for connect Polaric web platform to raspberry"
license=('GPL')
url="https://www.polaricsemi.com"
makedepends=('git')
depends=('libssh' 'gtk3')
provides=('polaric-connect')
conflicts=('polaric-connect')
source=("git+https://github.com/NikitaLavrinenko/Polaric-Connect.git")
sha256sums=('SKIP')

pkgver() {
    cd "Polaric-Connect"
    ( set -o pipefail
    git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  )
}

build() {
    cd "Polaric-Connect"
    make
}

package() {
    cd "Polaric-Connect"
    make install DESTDIR="$pkgdir"
}