1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
2 # Contributor: Andreas Baumann <mail@andreasbaumann.cc>
7 pkgdesc='A free, MIT licensed, Email library (MIME) written in C++'
8 url="http://www.codesink.org/mimetic_mime_library.html"
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')
18 patch -d $pkgname-$pkgver -p1 < bf84940f.patch # Fix build
23 ./configure --prefix=/usr
24 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool # Fix overlinking
31 make DESTDIR="$pkgdir" install
32 install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE