aboutsummaryrefslogtreecommitdiffstats
path: root/main/sylpheed/APKBUILD
blob: 840a292019e05eb66491edad7193697116a8c23e (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.5.1
pkgrel=1
pkgdesc="Lightweight and user-friendly e-mail client"
url="http://sylpheed.sraoss.jp/en/"
arch="all"
license="GPL"
depends="pinentry-gtk"
makedepends="gtk+-dev openldap-dev libressl-dev gpgme-dev"
subpackages="$pkgname-dev $pkgname-lang"
source="http://$pkgname.sraoss.jp/$pkgname/v${pkgver%.*}/$pkgname-$pkgver.tar.bz2
	"

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 \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--enable-ldap \
		--disable-gtkspell \
		--enable-gpgme \
		|| return 1
	make || return 1
}

package() {
	cd "$srcdir/sylpheed-$pkgver"
	make DESTDIR="$pkgdir" install || return 1
}
sha512sums="264aafb40eaa163405074480b2deb7eefe0d2158a107d9b26bc35d5506dcf5a52cf5712b81bd4c06b4c76e48c6e372c74473e5371bbdc80f230267f3b211c7f5  sylpheed-3.5.1.tar.bz2"