summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3e8c70740958fd015fe03ab56552cb4372c29097 (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
# Maintainer: Daniel Nagy <danielnagy at gmx de>

pkgname=quikman
pkgver=1.0.0
pkgrel=2
pkgdesc="A FreeBSD/Linux/Unix GUI manual viewer/reader written in Qt4"
url="https://code.google.com/p/quikman/"
arch=('x86_64' 'i686')
license=( 'BSD' )
depends=( 'qt4' 'man2html' )
source=( "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/quikman/quikman-1.0.0.tar.gz" )
sha1sums=('6b68e97120dbe8f33480e6151c71bc289cd3f269')

build() {
  cd "$srcdir"
  qmake-qt4 -project
  echo "target.path = \$\$INSTALL_ROOT/bin" >> src.pro
  echo "INSTALLS += target" >> src.pro
  sed -i -e "s,TARGET =,\0 quikman,g" src.pro
  qmake-qt4
  make
}

package() {
  cd "$srcdir"
  make INSTALL_ROOT="$pkgdir" install
  install -Dm644 $pkgname-$pkgver/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
  cd $pkgdir
  mv bin usr/bin
}