aports/testing/meli/APKBUILD
omni caca5d4257 testing/meli: new aport
- don't vendor openssl
- try to avoid static linking
- patch out cli-docs and the man sub-command, we package manpages in the
  -doc subpackage
- patch out dbus support, for now, this was mostly an effort to make the
  binary smaller, I'll probably revert it in the future if I can't make
  it have a significant dent on the size of the binary
2024-12-16 09:58:46 +00:00

54 lines
1.5 KiB
Text

# Maintainer: omni <omni+alpine@hack.org>
maintainer="omni <omni+alpine@hack.org>"
pkgname=meli
pkgver=0.8.10
pkgrel=0
pkgdesc="terminal e-mail client"
arch="all"
url="https://meli-email.org/"
license="GPL-3.0-or-later"
makedepends="cargo
cargo-auditable
curl-dev
openssl-dev
zlib-dev
"
checkdepends="m4"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://git.meli-email.org/meli/meli/archive/v$pkgver.tar.gz
neither_dbus_nor_cli-docs.patch
"
builddir="$srcdir/$pkgname"
options="net" # cargo fetch
export OPENSSL_NO_VENDOR=1
prepare() {
default_prepare
cargo fetch --target="$CTARGET" --locked
}
build() {
cargo auditable build --release --frozen
}
check() {
cargo test --frozen
}
package() {
install -Dm0755 -t "$pkgdir"/usr/bin/ target/release/"$pkgname"
install -Dm0644 -t "$pkgdir"/usr/share/man/man1/ meli/docs/*.1
install -Dm0644 -t "$pkgdir"/usr/share/man/man5/ meli/docs/*.5
install -Dm0644 -t "$pkgdir"/usr/share/man/man7/ meli/docs/*.7
install -Dm0644 -t "$pkgdir"/usr/share/doc/"$pkgname"/ \
meli/docs/samples/sample-config.toml
install -Dm0644 -t "$pkgdir"/usr/share/doc/"$pkgname"/themes/ \
meli/docs/samples/themes/*
}
sha512sums="
002e8c24d493d17eaa536025115250afd7347c76579bac231e910060dea91400686febcd67804f82fafb3cad7063d520d07e2e6d683eee205d8b65b46c17bbf8 meli-0.8.10.tar.gz
c970cf95cdacdb3060820a2d188e50027f0d4b8c79089e5a642c4aca6211cba316472f57099c0efff820609452d572a2216fb9e83ed28f206d1bfb3e88d7c409 neither_dbus_nor_cli-docs.patch
"