blob: ebdf5353f1bf5a1357e63ca068d51c04bd1cef4f (
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
|
# Maintainer: Adrien Wu <adrien.sf.wu@gmail.com>
pkgname=mailio
pkgver=0.23.0
pkgrel=1
pkgdesc="A cross platform C++ library for MIME format and SMTP, POP3 and IMAP protocols."
url="https://github.com/karastojko/mailio"
arch=('i686' 'x86_64')
provides=('mailio')
license=('BSD-2-Clause')
makedepends=('cmake' 'boost' 'openssl' 'doxygen')
depends=('boost' 'openssl')
source=("https://github.com/karastojko/$pkgname/archive/refs/tags/$pkgver.tar.gz")
sha256sums=('9fc3f1f803a85170c2081cbbef2e301473a400683fc1dffefa2d6707598206a5')
build() {
cd "$srcdir/$pkgname-$pkgver"
mkdir -p build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX="$pkgdir/usr" -DBoost_DIR="/usr/lib/cmake/Boost-1.72.0"
make -j
make docs -j
}
package() {
umask 022
cd "$srcdir/$pkgname-$pkgver/build"
make install
cd "$srcdir/$pkgname-$pkgver"
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
cd "$pkgdir/usr"
mkdir -p share/doc
mv docs "share/doc/$pkgname"
mv "share/$pkgname/examples" "share/doc/$pkgname/examples"
rm -rf "share/$pkgname"
}
|