blob: 21ddd137e69d30c1db486fa294205c61ea70835b (
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
|
# Contributor: thorsten w. <p@thorsten-wissmann.de>
pkgname=katarakt-git
pkgver=r234.e5b4caf
pkgrel=1
pkgdesc="A simple PDF viewer with two layouts"
arch=('i686' 'x86_64')
url="https://wwwcip.cs.fau.de/~go18gomu/katarakt/"
license=('BSD')
depends=( qt5-base poppler-qt5 )
optdepends=( )
makedepends=( asciidoc )
provides=( )
backup=( )
source=( git+https://gitlab.cs.fau.de/Qui_Sum/katarakt.git )
md5sums=( SKIP )
_gitname="katarakt"
pkgver() {
cd "${srcdir}/${_gitname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/${_gitname}"
qmake-qt5
make
a2x -f manpage -a "date=`date +%Y-%m-%d`" doc/katarakt.txt
}
package() {
cd $srcdir/$_gitname
install -D -m755 katarakt "${pkgdir}/usr/bin/katarakt"
install -D -m644 doc/katarakt.txt "${pkgdir}/usr/share/doc/${pkgname}/katarakt.txt"
install -D -m644 doc/katarakt.1 "${pkgdir}/usr/share/man/man1/katarakt.1"
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -m755 -d "${pkgdir}/usr/share/${pkgname}/"
install -m644 share/* "${pkgdir}/usr/share/${pkgname}/"
}
|