summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4a395d4e7103d96c30856e3128442b30bcc1f337 (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
# Maintainer: Gergely Polonkai <gergely@polonkai.eu>

pkgname=prestopalette
pkgver=0.1.31
pkgrel=1
pkgdesc="Tool for artists to create harmonious color palettes"
arch=(x86_64)
url="http://www.prestopalette.com/"
license=(MIT)
depends=(hicolor-icon-theme qt5-multimedia)
makedepends=(icoutils)
source=(https://github.com/PrestoPalette/PrestoPalette/releases/download/$pkgver/$pkgname-$pkgver.tar.gz
        PrestoPalette.desktop
        PrestoPalette.appdata.xml)
sha256sums=('656a1e7df7fae23dbb823609b9f8d24f8112cc3b6ca780883b6085b650168495'
            '3245ec4733f60823b6ce30b84980ad48c33c60baf224024f24f49ff619d7b18a'
            '999579fd4360a7ece78f1383c9ced7cd4caf8eaf5c4041dd98d44bc09255b50e')

build() {
  cd $pkgname-$pkgver
  qmake PrestoPalette.pro
  make
}

package() {
  cd $pkgname-$pkgver
  install -Dm755 build/release/PrestoPalette "$pkgdir/usr/bin/PrestoPalette"
  install -Dm644 ../PrestoPalette.desktop "$pkgdir/usr/share/applications/PrestoPalette.desktop"
  install -Dm644 ../PrestoPalette.appdata.xml "$pkgdir/usr/share/metainfo/PrestoPalette.appdata.xml"
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"

  icotool -x graphics/favicon.ico
  for res in 16 32 48 64 128 256; do
    install -Dm644 favicon_*"_${res}x${res}x32.png" \
      "$pkgdir/usr/share/icons/hicolor/${res}x${res}/apps/PrestoPalette.png"
  done
}