summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorpetrushka2016-06-18 13:45:20 +0300
committerpetrushka2016-06-18 13:45:20 +0300
commitd069dfd69b0faef49f191f8405e99d52897a3f1a (patch)
treec02f66eecb4a3839fb40b747b48dae3bd25a2933 /PKGBUILD
downloadaur-huaweicalc-git.tar.gz
Init commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..dcbda8e97d3
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,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}"
+}