summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 69f68ceb7df3f5c3161e5b281731f173f27eb48e (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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# vim:set ts=4 sts=2 sw=2 et ai si:
# Maintainer: Marti Raudsepp <marti@juffo.org>
# Maintainer: Glennie Vignarajah <glennie@glennie.fr>

pkgname=tinyca2
pkgver=0.7.5
pkgrel=3
pkgdesc="Simple graphical user interface to manage a small CA (Certification Authority)"
arch=(i686 x86_64)
url="http://tinyca.sm-zone.net/"
license=('GPL') # GPLv2+
depends=(gtk2-perl perl-locale-gettext openssl)
optdepends=('zip')
source=("$pkgname::git://github.com/glennie/tinyca2"
        10-fix-tinyca-paths.patch
        20-stolen-from-debian.patch
        30-sha2.patch)

md5sums=('SKIP'
         'd0b8fc9e3fc312ed9fbd98bf2dacbfea'
         'd5ad0010db954820837a3d09c90d018d'
         '95db1c26243fb9a70faf6dffdeccf20f'
         )

pkgver() {
  echo $pkgver
}

prepare() {
#{{{
  cd ${srcdir}
  for PATCH in $(ls *.patch); do
    echo "* patch: $PATCH"
    patch -p0 < ${PATCH} || exit 2
  done
}
#}}}

build() {
#{{{
  cd ${srcdir}/${pkgname}
  ./install.sh
}
#}}}

package() {
#{{{
  cd ${srcdir}/${pkgname}
  mkdir -p ${pkgdir}/usr/lib/tinyca2
  cp -R lib/* ${pkgdir}/usr/lib/tinyca2/ || return 1
  mkdir -p ${pkgdir}/usr/share/locale
  cp -R locale/* ${pkgdir}/usr/share/locale/ || return 1

  mkdir -p ${pkgdir}/etc/tinyca2
  cp templates/* ${pkgdir}/etc/tinyca2/ || return 1
  mkdir -p ${pkgdir}/usr/bin/
  cp tinyca2 ${pkgdir}/usr/bin/ || return 1
  mkdir -p ${pkgdir}/usr/share/applications/
  cp tinyca2.desktop ${pkgdir}/usr/share/applications/ || return 1

  mkdir -p $pkgdir/usr/share/man/man1
  gzip -c tinyca2.1.man > ${pkgdir}/usr/share/man/man1/tinyca2.1.gz || return 1
}
#}}}