PKGBUILDs/extra/mimetic/PKGBUILD

43 lines
1.2 KiB
Bash
Raw Normal View History

2017-09-07 00:09:24 +00:00
# Maintainer: Antonio Rojas <arojas@archlinux.org>
# Contributor: Andreas Baumann <mail@andreasbaumann.cc>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - patch to fix signed char usage
pkgname=mimetic
pkgver=0.9.8
2023-01-26 00:33:20 +00:00
pkgrel=3
pkgdesc='A free, MIT licensed, Email library (MIME) written in C++'
2017-09-07 00:09:24 +00:00
url="http://www.codesink.org/mimetic_mime_library.html"
2020-05-09 15:36:31 +00:00
arch=(x86_64)
2017-09-07 00:09:24 +00:00
license=(MIT)
depends=(gcc-libs)
source=(http://www.codesink.org/download/$pkgname-$pkgver.tar.gz
2023-01-26 00:33:20 +00:00
https://github.com/tat/mimetic/commit/bf84940f.patch
2017-09-07 00:09:24 +00:00
signed-char.patch)
sha256sums=('3a07d68d125f5e132949b078c7275d5eb0078dd649079bd510dd12b969096700'
2023-01-26 00:33:20 +00:00
'877406aff5b11042df9e036ed9e58dcc3e2ce54b47f263fd31886a9c16d7a0ea'
2017-09-07 00:09:24 +00:00
'fc7cad20839fa5ea50b9189eed9a628470051ad594a55b228c302947eb6f91b2')
prepare() {
2023-01-26 00:33:20 +00:00
patch -d $pkgname-$pkgver -p1 < bf84940f.patch # Fix build
2017-09-07 00:09:24 +00:00
cd $pkgname-$pkgver
patch -p1 -i ../signed-char.patch
}
build() {
cd $pkgname-$pkgver
./configure --prefix=/usr
2023-01-26 00:33:20 +00:00
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool # Fix overlinking
2017-09-07 00:09:24 +00:00
make
}
package() {
cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}