summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 44ac2ab1a860abf5e0b9a11fee69f1aa95c1c274 (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
# Contributer: giacomogiorgianni@gmail.com 

pkgname=arrowmatcher
pkgver=3.1.2
pkgrel=1
pkgdesc="ballistics software for arrows and bullets"
arch=('i386' 'x86_64')
url="http://opendesktop.org/content/show.php/arrowmatcher?content=144151"
license=('GPL')
depends=('qt4')
makedepends=('cmake' 'gettext' 'automoc4')
options=()
source=("${pkgname}-${pkgver}.tar.gz::https://sourceforge.net/projects/${pkgname}/files/${pkgname}/${pkgname}2-${pkgver}/${pkgname}2-${pkgver}.tar.gz/download")
sha1sums=('6e18d0907b84a13d200e255820c5caf14b5e258d')
#install=$pkgname.install
 
build() {
   
  cd "${pkgname}2-${pkgver}"
  #sed -i '1,1i#include  <QSslError>|' src/webpage.cpp
  qmake-qt4 ${pkgname}2.pro -config release PREFIX=/usr \
  "CONFIG+=LINUX_INTEGRATED" \
  "INSTALL_ROOT_PATH=${pkgdir}"
 
  make all
}
 
package() {
  cd "${pkgname}2-${pkgver}"
  #make INSTALL_ROOT=${pkgdir} install
  mkdir -p ${pkgdir}/usr/{bin,share/doc/packages/${pkgname}2}
  install -D -m755 src/release/${pkgname}2 ${pkgdir}/usr/bin/
  cp -r doc/de ${pkgdir}/usr/share/doc/packages/${pkgname}2/de
  cp -r doc/en ${pkgdir}/usr/share/doc/packages/${pkgname}2/en
  cp doc/${pkgname}2.qhc ${pkgdir}/usr/share/doc/packages/${pkgname}2
}