aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mu
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2016-08-11 14:52:46 +0200
committerSören Tempel <soeren+git@soeren-tempel.net>2016-08-11 14:53:25 +0200
commit2de825151b449ca015d43edcbaf303b20c882f77 (patch)
treec94d02435ab0c8e06ad86dad87023e9befd3a8d5 /testing/mu
parent6f48fc320b153009bb16d385d62ab28cbe484cad (diff)
downloadaports-2de825151b449ca015d43edcbaf303b20c882f77.tar.bz2
aports-2de825151b449ca015d43edcbaf303b20c882f77.tar.xz
testing/mu: rebuild against libxapian.so.30
Also cleanup a bit and a -doc subpackage.
Diffstat (limited to 'testing/mu')
-rw-r--r--testing/mu/APKBUILD67
1 files changed, 40 insertions, 27 deletions
diff --git a/testing/mu/APKBUILD b/testing/mu/APKBUILD
index 4bd235450a..e3ad528d77 100644
--- a/testing/mu/APKBUILD
+++ b/testing/mu/APKBUILD
@@ -1,43 +1,56 @@
+# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
+# Contributor: stef <l0ls0fo2i@ctrlc.hu>
+# Maintainer:
pkgname=mu
pkgver=0.9.11
-pkgrel=0
+pkgrel=1
pkgdesc="A collection of utilities for indexing and searching Maildirs"
-arch='x86 x86_64'
+arch="x86 x86_64"
url="http://www.djcbsoftware.nl/code/mu"
-license='GPL3'
-depends='sqlite'
-makedepends='xapian-core-dev gmime-dev sqlite-dev autoconf automake libtool'
+license="GPL3"
+depends="sqlite"
+makedepends="xapian-core-dev gmime-dev sqlite-dev autoconf automake libtool"
+install=""
+subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/djcb/mu/archive/v$pkgver.tar.gz"
-_builddir="$srcdir/$pkgname-$pkgver"
+_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
- cd "$_builddir"
- cd toys/mug
- sed -i 's|MUGDIR|"/usr/share/pixmaps"|g' mug.c
+ cd "$_builddir"
+ cd toys/mug
+ sed -i 's|MUGDIR|"/usr/share/pixmaps"|g' mug.c
}
build() {
- cd "$_builddir"
- # msg2pdf and mug will be built only if webkitgtk is installed
- autoreconf --force --install
- ./configure --prefix=/usr
- make
+ cd "$_builddir"
+ # msg2pdf and mug will be built only if webkitgtk is installed
+ autoreconf --force --install
+
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var \
+ || return 1
+ make || return 1
}
package() {
- cd "$_builddir"
- make DESTDIR=$pkgdir install
- # if msg2pdf and mug were built, install them
- # if not, remove the unneeded mug manpage
- if [ -f toys/msg2pdf/msg2pdf ]; then
- install -m755 toys/msg2pdf/msg2pdf $pkgdir/usr/bin/msg2pdf
- fi
- if [ -f toys/mug/mug ]; then
- install -m755 toys/mug/mug $pkgdir/usr/bin/mug
- install -Dm644 toys/mug/mug.svg $pkgdir/usr/share/pixmaps/mug.svg
- else
- rm $pkgdir/usr/share/man/man1/mug.1
- fi
+ cd "$_builddir"
+ make DESTDIR=$pkgdir install
+ # if msg2pdf and mug were built, install them
+ # if not, remove the unneeded mug manpage
+ if [ -f toys/msg2pdf/msg2pdf ]; then
+ install -m755 toys/msg2pdf/msg2pdf $pkgdir/usr/bin/msg2pdf
+ fi
+ if [ -f toys/mug/mug ]; then
+ install -m755 toys/mug/mug $pkgdir/usr/bin/mug
+ install -Dm644 toys/mug/mug.svg $pkgdir/usr/share/pixmaps/mug.svg
+ else
+ rm $pkgdir/usr/share/man/man1/mug.1
+ fi
}
md5sums="6b774454b181c9814992e7c9a24b9441 mu-0.9.11.tar.gz"
sha256sums="d01993299a634126bb7431d4390fc3be941f1a22e98a91ec2d55bb4bf0a7c106 mu-0.9.11.tar.gz"