summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 364a943a33bae4848bc7e584dd6556077f5ca355 (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: Max le Fou <buttbadger@gmail.com>
# Maintainer: Alex Zappa <reatlat@gmail.com>

pkgname=koala-bin
pkgver=2.3.0
pkgrel=4
pkgdesc="Koala is a GUI application for LESS, Sass and CoffeeScript compilation, to help web developers use these tools more efficiently for development."
arch=('x86_64' 'i686')
url="http://koala-app.com/"
_repourl="https://github.com/oklai/koala"
license=('Apache License, Version 2.0')
provides=('koala')
depends=('ruby' 'gconf')
optdepends=()

source=('koala.png'
        'koala.desktop')
source_x86_64=("${_repourl}/releases/download/v${pkgver}/koala_${pkgver}_x86_64.tar.gz")
source_i686=("${_repourl}/releases/download/v${pkgver}/koala_${pkgver}_i386.tar.gz")

sha512sums=('00c273bb8b987f8909162885bf5eca48013fcc81abef0e1d6565a5bd9ce5e8071306fb8186eab790fb025ef2aa960d9770a4b6e656424d6ed92fdf769681167b'
            'a4ae5ccefc89e67747d2d349b9029c917eb826b5cd23bfb1b0d1ea34cf7c075cba9be8b76f976eab628efce96d3a892441cae1aec70d90088c7e00a584b49ffb')
sha512sums_x86_64=('89b18d07be00d1793bd71374d9f308a156de8d948c10bf347050b31b75b090f56b475584bd15ccd213f13acd4de73a85fb1c646162b246c0fdc2c4fbd3208257')
sha512sums_i686=('1bea8bdc189f77c1954f5fc0689c8a257ded62ec6bf10189ccdf8c47f81913c93a3781d7d663d3f08b4cd617c557d224c5cdbc3f95a73212c8414cd55d20762c')

package() {
  cd ${srcdir}/usr/share/koala

  mkdir -p "${pkgdir}/usr/bin"
  mkdir -p "${pkgdir}/usr/share/koala"
  mkdir -p "${pkgdir}/usr/share/applications"

  cp --preserve=mode -R ./* "${pkgdir}/usr/share/koala"
  install -D -m644 "${srcdir}/koala.png" "${pkgdir}/usr/share/koala/koala.png"
  chmod +x "${srcdir}/koala.desktop"
  install -D -m644 "${srcdir}/koala.desktop" "${pkgdir}/usr/share/applications/koala.desktop"
  ln -s "/usr/share/koala/Koala" "${pkgdir}/usr/bin/koala"
}