blob: 77b142f7a375ceae1764cc765891f4da999a7d25 (
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
39
40
41
42
43
44
|
# $Id: PKGBUILD 81704 2012-12-27 07:55:09Z bluewind $
# Maintainer: Florian Pritz <flo@xinu.at>
# Contributor: Jan Fader <jan.fader@web.de>
pkgbase=highlight
pkgname=(highlight highlight-gui)
pkgver=3.12
pkgrel=3
url="http://www.andre-simon.de/doku/highlight/highlight.html"
license=('GPL')
arch=('i686' 'x86_64' 'mips64el')
makedepends=(qt lua51 boost)
source=(http://www.andre-simon.de/zip/$pkgname-$pkgver.tar.bz2{,.asc})
md5sums=('4b3f01e86a6b3fa25f3c4905a9cd63c7'
'b784cd3f264a0f281da36f26c0c7f2c2')
build() {
cd "$srcdir/$pkgbase-$pkgver"
sed -i 's#pkg-config --cflags lua#pkg-config --cflags lua5.1#' src/makefile
sed -i 's#pkg-config --libs lua#pkg-config --libs lua5.1#' src/makefile
sed -i 's#lua#lua5.1#g' src/gui-qt/highlight.pro
make
make gui
}
package_highlight() {
pkgdesc="Fast and flexible source code highlighter (CLI version)"
depends=('lua51')
cd "$srcdir/$pkgbase-$pkgver"
make DESTDIR="$pkgdir" install
}
package_highlight-gui() {
pkgdesc="Fast and flexible source code highlighter (QT version)"
depends=('qt' 'highlight')
cd "$srcdir/$pkgbase-$pkgver"
install -dm755 "$pkgdir/usr/bin"
make DESTDIR="$pkgdir" install-gui
}
# vim:set ts=2 sw=2 et:
|