summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 27df40e2c7620d76dd8793996886ffe54c512fb0 (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
35
36
37
38
# Maintainer: Hsiu-Ming Chang <cges30901 at gmail dot com>
pkgname=hmtimer
pkgver=2.3
pkgrel=3
pkgdesc="graphical shutdown timer"
arch=('i686' 'x86_64')
url="https://sites.google.com/site/hsiumingstimer/"
license=('GPL3')
groups=()
depends=('qt5-base' 'qt5-multimedia' 'hicolor-icon-theme')
makedepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install="$pkgname.install"
changelog=
source=("https://sourceforge.net/projects/hsiumingstimer/files/hmtimer-$pkgver/hmtimer-$pkgver-src.tar.bz2")
noextract=()
md5sums=('6cd4473d41f23ee21ec1fe49bfeb85e2')

build() {
  cd "$pkgname-$pkgver"
  qmake
  make
}

package() {
  cd "$pkgname-$pkgver"

  install -D -m0755 hmtimer/hmtimer $pkgdir/usr/bin/hmtimer
  install -D -m0644 hmtimer/language/hmtimer_zh_TW.qm $pkgdir/usr/share/hmtimer/hmtimer_zh_TW.qm
  install -D -m0644 hmtimer.desktop $pkgdir/usr/share/applications/hmtimer.desktop
  install -D -m0644 hmtimer/hmtimer.png $pkgdir/usr/share/icons/hicolor/128x128/apps/hmtimer.png
  install -D -m0644 hmtimer/hmtimer48.png $pkgdir/usr/share/icons/hicolor/48x48/apps/hmtimer.png
}