aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/atheme-services/APKBUILD
blob: 392ded93ec2a3e219e47ff992a20f9b9c3029398 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=atheme-services
pkgver=7.0.5
pkgrel=1
pkgdesc="Atheme IRC services"
url="http://www.atheme.net/atheme.html"
arch="all"
license="BSD"
depends=""
depends_dev=""
makedepends="$depends_dev openssl-dev pcre-dev libmowgli-dev>=2"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://www.atheme.net/downloads/atheme-services-$pkgver.tar.bz2
	cc.patch"

_builddir="$srcdir"/atheme-services-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--sysconfdir=/etc/atheme \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--enable-fhs-paths \
		--disable-rpath \
		--with-pcre \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="e9b7ae54374eed559d0a693e3bb34ac0  atheme-services-7.0.5.tar.bz2
ad2542446b126511c61250d8f6a085d8  cc.patch"
sha256sums="25271eb1e9218ceeec87824dbe90a2bfc59f116e258b6ee803573dfa8c4fcc30  atheme-services-7.0.5.tar.bz2
d49ad794e1513477bbe69dfe678ab90f6eb496f209a64ca114f7cde2fd64ff03  cc.patch"
sha512sums="dfa27c2d7a90ae9be173ccf6675bec4db92f92f01a9ebb8e8847730f45d159db316d827cbe1f30276dbd7db326529d42f1281e0b6940261992893f0ff36710a5  atheme-services-7.0.5.tar.bz2
f925ca0d69c79e597bcf322b0b7dbdf9f929166cbb8e62171f0b4674309023eaa679df29f9fdf11ccdacf770dad676db32657f58ea62d066bf9cda5709e55db8  cc.patch"