summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e8aef3da0584306e1a4ebf3fb243c153f637d0b8 (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
# Maintainer: aksr <aksr at t-com dot me>
pkgname=epic4-git
pkgver=2.10.6.r972.a2b9f18
pkgrel=1
epoch=
pkgdesc="A new direction in ircII development."
arch=('i686' 'x86_64')
url="http://www.epicsol.org/"
license=('custom')
categories=()
groups=()
depends=('openssl' 'ncurses' 'tcl' 'perl')
makedepends=('git')
optdepends=()
checkdepends=()
provides=()
conflicts=("${pkgname%-*}")
replaces=()
backup=()
options=()
changelog=
install=
source=("$pkgname::git+http://git.epicsol.org/epic4.git")
noextract=()
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$pkgname"
  printf "%s.r%s.%s" "$(git describe --tags | sed -E 's/([^-]*-g)/r\1/;s/-/./g;s/^epic4.//')" \
                     "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "$srcdir/$pkgname"
  unset CPPFLAGS
  ./configure --prefix=/usr --mandir=/usr/share/man \
              --with-ssl  \
              --with-ipv6 \
              --with-perl \
              --with-tcl
  make
}

package() {
  cd "$srcdir/$pkgname"
  make prefix="${pkgdir}"/usr \
       libexecdir="${pkgdir}"/usr/bin \
       mandir="${pkgdir}"/usr/share/man install
  install -Dm644 COPYRIGHT "${pkgdir}"/usr/share/licenses/${pkgname%-*}/COPYRIGHT
}