summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 48ae0455ad2842d5dc9d35c0722b988b9204e56e (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: Gianluca Montecchi <gian@grys.it>

pkgname=bulbcalculator
_pkgname=bulbcalculator
pkgver=3.1.0
pkgrel=1
pkgdesc="A progran to design bulbs of sailboat based on Qt and libQGLViewer"
url="https://www.bulbcalculator.com"
depends=('qt5-base')
install=bulbcalculator.install
arch=('i686' 'x86_64')
license=('GPL3')
source=("http://www.bulbcalculator.com/uploads/${_pkgname}-src-${pkgver}.tgz" "bulbcalculator.desktop")
md5sums=('2951aa26b09ba27326b2761c03eab78e' '02dc7515355a97830c2796c7b86614dc')

build()
{
  cd ${_pkgname}-$pkgver

  qmake -o Makefile ${_pkgname}.pro || return 1
  make \
    CFLAGS="-pipe ${CFLAGS} -D_REENTRANT -Wall -W -fPIC \$(DEFINES)" \
    CXXFLAGS="-pipe ${CXXFLAGS} -D_REENTRANT -Wall -W -fPIC \$(DEFINES)" || return 1
}

package()
{
  cd ${_pkgname}-$pkgver

  make install INSTALL_ROOT="$pkgdir" || return 1
  
  # Install license.
  install -d -m 0755 "${pkgdir}"/usr/share/licenses/$pkgname/ || return 1
  install -Dm644 ${srcdir}/${pkgname}.desktop ${pkgdir}/usr/share/applications/${pkgname}.desktop
  install -Dm644 ${srcdir}/${pkgname}-${pkgver}/${pkgname}/share/images/bulbcalculator.png \
    "${pkgdir}"/usr/share/icons/hicolor/128x128/apps/bulbcalculator.png
  #install -m 0644 LICENCE GPL_EXCEPTION "${pkgdir}"/usr/share/licenses/$pkgname/ || return 1
}