archrelease: copy trunk to community-any
[ArchLinux/community.git] / mimetic / trunk / PKGBUILD
blob80ab9e248eb1b2e673b60bbbfdc1ddc0fe37f63e
1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
2 # Contributor: Andreas Baumann <mail@andreasbaumann.cc>
4 pkgname=mimetic
5 pkgver=0.9.8
6 pkgrel=3
7 pkgdesc='A free, MIT licensed, Email library (MIME) written in C++'
8 url="http://www.codesink.org/mimetic_mime_library.html"
9 arch=(x86_64)
10 license=(MIT)
11 depends=(gcc-libs)
12 source=(http://www.codesink.org/download/$pkgname-$pkgver.tar.gz
13         https://github.com/tat/mimetic/commit/bf84940f.patch)
14 sha256sums=('3a07d68d125f5e132949b078c7275d5eb0078dd649079bd510dd12b969096700'
15             '877406aff5b11042df9e036ed9e58dcc3e2ce54b47f263fd31886a9c16d7a0ea')
17 prepare() {
18   patch -d $pkgname-$pkgver -p1 < bf84940f.patch # Fix build
21 build() {
22   cd $pkgname-$pkgver
23   ./configure --prefix=/usr
24   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool # Fix overlinking
25   make
28 package() {
29   cd $pkgname-$pkgver
31   make DESTDIR="$pkgdir" install
32   install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE