summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9ddca19ac810e565c53980c4bf714629c0f4749f (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
pkgname=qtresistors
pkgver=0.1.3
pkgrel=2
pkgdesc="Calculate resistance value and tolerance of resistors by their color codes."
arch=('i686' 'x86_64')
url="https://github.com/goetzc/qtResistors"
#url="http://qt-apps.org/content/show.php/qtResistors?content=118297"
license=('GPL')
depends=('qt5-base')
source=("https://github.com/goetzc/qtResistors/archive/$pkgver.tar.gz")
sha256sums=('806982cd62f7ac29f71141e318acbd79791aa279697d04226cfb8109647e838d')

build() {
  cd qtResistors-$pkgver/src

  qmake
  make
}

package() {
  cd qtResistors-$pkgver
  
  install -Dm755 src/qtResistors $pkgdir/usr/bin/qtResistors
  install -Dm644 qtResistors.desktop $pkgdir/usr/share/applications/qtResistors.desktop
  install -Dm644 icons/qtResistors.png $pkgdir/usr/share/icons/hicolor/64x64/apps/qtResistors.png
}