summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD34
2 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..f734642d9f2
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = huaweicalc-git
+ pkgdesc = Huawei modem unlock code calculator.
+ pkgver = r16.98a2451
+ pkgrel = 1
+ url = https://github.com/forth32/huaweicalc
+ arch = i686
+ arch = x86_64
+ license = GPLv3
+ makedepends = make git gcc qtchooser
+ depends = qt5-base
+ source = huaweicalc-git::git+https://github.com/forth32/huaweicalc.git
+ md5sums = SKIP
+
+pkgname = huaweicalc-git
+
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}"
+}