updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / sylfilter / PKGBUILD
blob5e53d0c97ef0a2b2294781a40cadc462774dbea8
1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
3 pkgname=sylfilter
4 pkgver=0.7
5 pkgrel=1
6 pkgdesc="A generic message filter library and command-line tools."
7 arch=(i686 x86_64)
8 url="http://sylpheed.sraoss.jp/$pkgname/"
9 license=('BSD')
10 depends=('glib2' 'sqlite3')
11 options=('!libtool')
12 source=("${url}src/$pkgname-$pkgver.tar.gz")
13 md5sums=('8445ec4306c0ee4755c5fb4195941f7e')
15 build() {
16   cd "$srcdir/$pkgname-$pkgver"
18   # missing config.h fix (temporary, sent patch upstream)
19   sed -i '11i#include "config.h"' lib/filters/textcontent-filter.c
20   sed -i '14i#include "config.h"' lib/filters/bayes-filter.c
21   sed -i '8i#include "config.h"' lib/filter-utils.c
23   ./configure --prefix=/usr \
24               --enable-static=no
25   make
28 package() {
29   cd "$srcdir/$pkgname-$pkgver"
31   make DESTDIR="$pkgdir/" install
33   # license
34   install -Dm644 COPYING \
35     "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
38 # vim:set ts=2 sw=2 et: