summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dcbda8e97d3749e3290e42ab0464a0cefeccdc1a (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
# Maintainer: petRUShka <petrushkin[dot]yandex[at]ru>

pkgname=huaweicalc-git
pkgver=r16.98a2451
pkgrel=1
pkgdesc='Huawei modem unlock code calculator.'
arch=('i686' 'x86_64')
url="https://github.com/forth32/${pkgname%-git}"
license=('GPLv3')
depends=('qt5-base')
makedepends=('make git gcc qtchooser')
provides=()
conflicts=()
options=()

pkgver() {
    cd $pkgname
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

source=("${pkgname}::git+https://github.com/forth32/${pkgname%-git}.git")
md5sums=(SKIP)

build() {
    cd $srcdir/$pkgname
    qmake
    make
}

package() {
    cd $srcdir/$pkgname
    install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
    install -D -m755 balong_flash "$pkgdir/usr/bin/${pkgname%-git}"
}