aboutsummaryrefslogtreecommitdiffstats
path: root/main/sipsak/APKBUILD
blob: 8b4dfe391d4af1663f0e355dd6304d4e9c2fe875 (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
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=sipsak
pkgver=0.9.6
pkgrel=11
pkgdesc="SIP swiss army knife"
url="http://sipsak.org/"
arch="all"
license="GPL-2.0-or-later"
depends=""
makedepends="openssl-dev c-ares-dev"
install=""
subpackages="$pkgname-dbg $pkgname-doc"
source="https://downloads.sourceforge.net/project/sipsak.berlios/${pkgname}-${pkgver}-1.tar.gz
	musl-fix-strcasestr.patch
	fix-off-by-one-bugs.patch
	sipsak-0001-Fix-for-wrong-arity-of-callback-function-for-c-ares.patch
	fix-aaaa-record-segfault.patch
	fix-inline.patch
	"

builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "$builddir"
	default_prepare
	update_config_sub
}

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="c2d62ddaf2ecc9616941cf002a0494d2f9c43747e6b527f8b1542e9b5ae143fc69b18fc140bd3f255896b0e8eb02f7d198cc1799a4041e2d0c95d90b653591fe  sipsak-0.9.6-1.tar.gz
5a9f2679ef8b5e7a7d2db79e32c2a9ca304bd507804d86628231ad273cc08810bf3470f2b3fb5e873279d619669917f81fbf9bdfe74e83e3dfa6451aa4b62e85  musl-fix-strcasestr.patch
4f4978924482d9d8b4a1167bf968cec8c3e705ea81cd8fe4b83873f408684d43cc166d0eeeb20f7a459ff9e02ddb0cac08644d5d6f77629557d07f96f9634605  fix-off-by-one-bugs.patch
1bfd9703029cc5e0b8bd5719d96871358c33412982a39bb1f8204ed68cd472ee3bbdee7924d4cd8f48e33299659c484709c7c347629f3771707f5e23d8eb2b2f  sipsak-0001-Fix-for-wrong-arity-of-callback-function-for-c-ares.patch
6e60e023feef1c36d4e45426568142e8aed5bcc5f91509a610dc3b0dd507677aa7a978ae2573f3f8c93f228cb415e79d92eddd6fc544897606b597d0a44aab6b  fix-aaaa-record-segfault.patch
1e21453d2a91cc4a1f0533833e260cba83107cdb340dd0c5a98446b22156650926c6d087d4074ffd5880694f3b5bac30368b40e302b8abb53da6783c3928c34a  fix-inline.patch"