aboutsummaryrefslogtreecommitdiffstats
path: root/main/sylpheed/APKBUILD
blob: d233859693235f86367e8cfa77caae1f822ba131 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=sylpheed
pkgver=3.1.4
pkgrel=0
pkgdesc="Lightweight and user-friendly e-mail client"
url="http://sylpheed.sraoss.jp/en/"
arch="all"
license="GPL"
depends=
makedepends="gtk+-dev openldap-dev openssl-dev"
subpackages="$pkgname-dev $pkgname-lang"
source="http://$pkgname.sraoss.jp/$pkgname/v${pkgver%.*}/$pkgname-$pkgver.tar.bz2
	glib.patch
	gmodule.patch
	"

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

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

package() {
	cd "$srcdir/sylpheed-$pkgver"
	make DESTDIR="$pkgdir" install || return 1
	find "$pkgdir" -name '*.la' -delete
}
md5sums="4e0e41f05607e5c2542a7dfd166aee77  sylpheed-3.1.4.tar.bz2
8add7f81d58958ba4ed5680e8fcc4c80  glib.patch
e9a3795219bc9c6cafc1cc360eeb9854  gmodule.patch"