summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3800170d6738b672e5d9769b60901e722bea99f1 (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
# Maintainer: zoe <chp321 AT gmail DOT com>

pkgname=colorcode
_pkgname=ColorCode
pkgver=0.8.7
pkgrel=1
pkgdesc="Advanced MasterMind game and solver"
arch=('i686' 'x86_64')
url="http://${pkgname}.laebisch.com/"
license=('GPL')
depends=('qt5-base')
makedepends=('cmake')
install=${pkgname}.install
source=("http://${pkgname}.laebisch.com/download/${_pkgname}-${pkgver}.tar.gz"
        "${pkgname}.desktop" "${pkgname}.png")
md5sums=('9ada35712a8b32f5462b382e083c5aa8'
         'e2f3f71d01cc7aa842f64a5490a5aa6d'
         '648b63a6de3129b72c752ba893a856a1')

build() {
  cd "${srcdir}/${_pkgname}-${pkgver}"
  cd build_cmake
  cmake ../src
  make
}

package() {
  install -DTm755 ${srcdir}/${_pkgname}-${pkgver}/build_cmake/${pkgname} "${pkgdir}/usr/bin/${pkgname}"
  install -DTm644 ${srcdir}/${pkgname}.png     "${pkgdir}/usr/share/icons/hicolor/32x32/apps/${pkgname}.png"
  install -DTm644 ${srcdir}/${pkgname}.desktop "${pkgdir}/usr/share/applications/${pkgname}.desktop"
  }