128 lines
3.2 KiB
Bash
128 lines
3.2 KiB
Bash
# Template file for 'notmuch'
|
|
pkgname=notmuch
|
|
version=0.29.1
|
|
revision=1
|
|
hostmakedepends="perl pkg-config python-devel python3-Sphinx python3-devel"
|
|
makedepends="bash-completion gmime3-devel talloc-devel xapian-core-devel"
|
|
short_desc="Thread-based email index, search, and tagging"
|
|
maintainer="Jan S. <jan.schreib@gmail.com>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://notmuchmail.org"
|
|
distfiles="https://notmuchmail.org/releases/notmuch-${version}.tar.xz"
|
|
checksum=9846fc8e32d415cee41f6644581a4de7b0d2e6bc98e1ba86db918f061fcfe365
|
|
|
|
subpackages="libnotmuch libnotmuch-devel notmuch-mutt notmuch-python notmuch-python3"
|
|
patch_args=-Np1
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
i686*|x86_64*|ppc64*)
|
|
hostmakedepends+=" desktop-file-utils"
|
|
makedepends+=" emacs"
|
|
subpackages+=" notmuch-emacs"
|
|
_args="--emacslispdir=/usr/share/emacs/site-lisp/notmuch
|
|
--emacsetcdir=/usr/share/emacs/site-lisp/notmuch"
|
|
;;
|
|
armv7l-musl) broken="https://build.voidlinux.org/builders/armv7l-musl_builder/builds/15480/steps/shell_3/logs/stdio";;
|
|
*) _args="--without-emacs";;
|
|
esac
|
|
|
|
if [ ! "$CROSS_BUILD" ]; then
|
|
makedepends+=" ruby-devel"
|
|
subpackages+=" notmuch-ruby"
|
|
fi
|
|
|
|
do_configure() {
|
|
./configure --prefix=/usr \
|
|
--bashcompletiondir=/usr/share/bash-completion/completions \
|
|
--zshcompletiondir=/usr/share/zsh/site-functions ${_args}
|
|
}
|
|
|
|
do_build() {
|
|
make ${makejobs} V=1
|
|
make -C contrib/notmuch-mutt
|
|
cd bindings/python
|
|
python2 setup.py build --build-base=build-2
|
|
python3 setup.py build --build-base=build-3
|
|
}
|
|
|
|
do_install() {
|
|
make DESTDIR=${DESTDIR} install
|
|
pushd bindings/python
|
|
python2 setup.py build --build-base=build-2 \
|
|
install --prefix=/usr --root=${DESTDIR}
|
|
python3 setup.py build --build-base=build-3 \
|
|
install --prefix=/usr --root=${DESTDIR}
|
|
popd
|
|
if [ ! "$CROSS_BUILD" ]; then
|
|
make DESTDIR=${DESTDIR} -C bindings/ruby install
|
|
fi
|
|
}
|
|
|
|
libnotmuch_package() {
|
|
short_desc+=" - runtime library"
|
|
pkg_install() {
|
|
vmove usr/lib/*.so.*
|
|
}
|
|
}
|
|
|
|
libnotmuch-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="libnotmuch-${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/*.so
|
|
}
|
|
}
|
|
|
|
notmuch-emacs_package() {
|
|
archs=noarch
|
|
short_desc+=" - Emacs interface"
|
|
depends="${sourcepkg}-${version}_${revision} virtual?emacs"
|
|
pkg_install() {
|
|
vmove usr/bin/notmuch-emacs-mua
|
|
vmove usr/share/applications
|
|
vmove usr/share/emacs/site-lisp
|
|
vmove usr/share/info/notmuch-emacs*
|
|
vmove usr/share/man/man1/notmuch-emacs*
|
|
}
|
|
}
|
|
|
|
notmuch-mutt_package() {
|
|
archs=noarch
|
|
short_desc+=" - Mutt interface"
|
|
depends="${sourcepkg}-${version}_${revision} perl-Mail-Box perl-MailTools
|
|
perl-String-ShellQuote perl-Term-ReadLine-Gnu perl-File-Which"
|
|
pkg_install() {
|
|
vbin contrib/notmuch-mutt/notmuch-mutt
|
|
vman contrib/notmuch-mutt/notmuch-mutt.1
|
|
}
|
|
}
|
|
|
|
notmuch-python_package() {
|
|
archs=noarch
|
|
depends="libnotmuch>=${version}_${revision}"
|
|
short_desc+=" - Python2 bindings"
|
|
pycompile_module="notmuch"
|
|
pkg_install() {
|
|
vmove ${py2_sitelib}
|
|
}
|
|
}
|
|
|
|
notmuch-python3_package() {
|
|
archs=noarch
|
|
depends="libnotmuch>=${version}_${revision}"
|
|
short_desc+=" - Python3 bindings"
|
|
pycompile_module="notmuch"
|
|
pkg_install() {
|
|
vmove ${py3_sitelib}
|
|
}
|
|
}
|
|
|
|
notmuch-ruby_package() {
|
|
depends="libnotmuch>=${version}_${revision} ruby"
|
|
short_desc+=" - Ruby bindings"
|
|
pkg_install() {
|
|
vmove usr/lib/ruby
|
|
}
|
|
}
|