summaryrefslogtreecommitdiffstats
path: root/main/libical/APKBUILD
blob: 4d891584d6d29ce12235c97344f2373eaee11ee3 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libical
pkgver=0.48
pkgrel=1
pkgdesc="An open source reference implementation of the icalendar data type and serialization format"
url="http://sourceforge.net/projects/freeassociation/"
arch="all"
license="LGPL MPL"
depends=
makedepends="perl autoconf automake libtool"
subpackages="$pkgname-dev"
source="http://downloads.sourceforge.net/freeassociation/$pkgname-$pkgver.tar.gz	automake.patch"

prepare() {
	cd "$srcdir"/$pkgname-$pkgver
	for i in $source; do
		case $i in
		*.patch)
			msg "Applying $i"
			patch -p1 -i "$srcdir"/$i || return 1
			;;
		esac
	done
	aclocal && autoheader && autoconf && automake -a || return 1
	libtoolize --force
}

build() {
	cd "$srcdir"/$pkgname-$pkgver
	./configure --prefix=/usr \
		--enable-shared \
		--disable-static \
		|| return 1
	make || return 1
}

package() {
	cd "$srcdir"/$pkgname-$pkgver
	make -j1 DESTDIR="$pkgdir" install
	rm "$pkgdir"/usr/lib/*.la
}

md5sums="e549f434d5fbf9cd156c60ed4943618f  libical-0.48.tar.gz
79a2ea148f8c6b2a2337ecff296287cb  automake.patch"