aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mu
diff options
context:
space:
mode:
authorstef <l0ls0fo2i@ctrlc.hu>2015-03-30 20:25:41 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-03-31 12:57:51 +0000
commit6fa2f330094833149528e74c8c7d42fb8553f3ae (patch)
treea6a3ec888e2b7635236cfece0d0ae40009c6420e /testing/mu
parent3c5fde8fec04171782cbc6e745fad59bc149dc7a (diff)
downloadaports-6fa2f330094833149528e74c8c7d42fb8553f3ae.tar.bz2
aports-6fa2f330094833149528e74c8c7d42fb8553f3ae.tar.xz
testing/mu maildir-utils initial commit
Diffstat (limited to 'testing/mu')
-rw-r--r--testing/mu/APKBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/testing/mu/APKBUILD b/testing/mu/APKBUILD
new file mode 100644
index 0000000000..e5a2015014
--- /dev/null
+++ b/testing/mu/APKBUILD
@@ -0,0 +1,44 @@
+pkgname=mu
+pkgver=0.9.11
+pkgrel=0
+pkgdesc="A collection of utilities for indexing and searching Maildirs"
+arch='x86 x86_64'
+url="http://www.djcbsoftware.nl/code/mu"
+license='GPL3'
+depends='sqlite'
+makedepends='xapian-core-dev gmime-dev sqlite-dev'
+source="https://github.com/djcb/mu/archive/v$pkgver.tar.gz"
+_builddir="$srcdir/$pkgname-$pkgver"
+
+prepare() {
+ 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
+}
+
+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
+}
+md5sums="6b774454b181c9814992e7c9a24b9441 v0.9.11.tar.gz"
+sha256sums="d01993299a634126bb7431d4390fc3be941f1a22e98a91ec2d55bb4bf0a7c106 v0.9.11.tar.gz"
+sha512sums="612853ed4a8f841419b0b1927f2c86405f0b442d56166d3252321121b10fc5d2ddb22e46e3e7e1b2802dd61735e440aa84b41ff646935ef492bd4af64ec86778 v0.9.11.tar.gz"