summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6d7e853045e7b27bf1753665c17d0bbf081c7162 (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
# Maintainer:  Alexej Magura <amagura28@gmail.com>
# Maintainer:  ruantu <mtwget@gmail.com>
pkgname=libzlog
_realname=zlog
pkgver=1.2.15
pkgrel=1
pkgdesc="a reliable pure C logging library"
arch=('i686' 'x86_64')
url="http://hardysimpson.github.com/zlog"
license=('LGPL')
depends=(glibc)
makedepends=(lyx hevea)
source=("https://github.com/HardySimpson/$_realname/archive/$pkgver.tar.gz")
md5sums=('155f841543f947bf21112ae4328e7152')

build()
{
  cd "$srcdir/$_realname-$pkgver"

  make all
  make doc || make doc
}

package()
{
  cd "$srcdir/$_realname-$pkgver"

  make PREFIX="$pkgdir/usr" install

  install -d "$pkgdir/usr/share/$pkgname/doc"

  rename mence mance doc/per*.txt # performence.txt is misspelled: this corrects it.
  install -t "$pkgdir/usr/share/$pkgname/doc" "doc/"*
  rm "$pkgdir/usr/share/$pkgname/doc/makefile"
  rm "$pkgdir/usr/share/$pkgname/doc/"*.lyx
}
# vim:set ts=2 sw=2 et: