aboutsummaryrefslogtreecommitdiffstats
path: root/testing/epic5/APKBUILD
blob: 78a63d9383b62e17a0833485f926816e05338b7d (plain) (blame)
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
65
66
67
68
# Contributor: rubicon <rubicon@mailo.com>
# Maintainer: rubicon <rubicon@mailo.com>
pkgname=epic5
pkgver=2.1.9
pkgrel=0
pkgdesc="Enhanced Programmable ircII Client, version 5"
url="http://epicsol.org/"
arch="all"
license="BSD-3-Clause"
makedepends="libarchive-dev ncurses-dev openssl1.1-compat-dev perl-dev"
subpackages="$pkgname-doc $pkgname-script:script:noarch $pkgname-lite"
source="http://ftp.epicsol.org/pub/epic/EPIC5-PRODUCTION/epic5-$pkgver.tar.gz
	default-to-oftc.patch
	"
# dir for lite variant without libarchive and perl support
_litedir="$srcdir/$pkgname-$pkgver"/lite

build() {
	mkdir -p "$_litedir"
	cp -r configure Makefile.in include source "$_litedir"/

	./configure \
		--build="$CBUILD" \
		--target="$CTARGET" \
		--prefix=/usr \
		--with-ipv6
	make

	cd "$_litedir"
	./configure \
		--build="$CBUILD" \
		--target="$CTARGET" \
		--prefix=/usr \
		--with-ipv6 \
		--without-libarchive \
		--without-perl
	make
}

check() {
	"$builddir"/source/epic5 -v
	"$_litedir"/source/epic5 -v
}

package() {
	make DESTDIR="$pkgdir" install
	install -Dm644 -t "$pkgdir"/usr/share/doc/epic5 \
		"$builddir"/doc/*
	rm "$pkgdir"/usr/share/doc/epic5/epic*.1
}

script() {
	pkgdesc="$pkgdesc (bundled scripts)"
	depends="cmd:$pkgname=$pkgver-r$pkgrel"
	amove usr/share/epic5
}

lite() {
	pkgdesc="$pkgdesc (dependency-lite variant)"
	cd "$_litedir"
	make DESTDIR="$subpkgdir" installbin
	rm -vrf "$subpkgdir"/usr/share
}

sha512sums="
96fdfea868a90742590b40c1858e36e3f7dca484b5bc0de099a42a8a4dc254f772f98f2c1522a7ecf674100653045bba88b204bca396125592819bbe0288ccca  epic5-2.1.9.tar.gz
b89098e2a5ba34b9b28714e3ed94230a5e9b56f455eb4e38d0108229633056df55de6e5a89a2f6459f8b034785b8774bf94eaeb35bfe6353de54b3b013f18da5  default-to-oftc.patch
"