summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 341751584099e02f379bc8497214e58a51506195 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Maintainer: Lauri Kenttä <lauri.kentta@gmail.com>
pkgname=huawei-mobile-helper
pkgver=1.0
pkgrel=1
pkgdesc="Auto-connect for non-HiLink Huawei USB dongles"
arch=('any')
url="https://github.com/Metabolix/$pkgname"
license=('GPL')
depends=('udev' 'systemd' 'bash')
source=("git+$url.git")
sha1sums=(${source[@]/*/SKIP})

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

package() {
  cd "$pkgname"
  sh install.sh "$pkgdir"
}