aboutsummaryrefslogtreecommitdiffstats
path: root/main/altermime/APKBUILD
blob: 521700311d8d98c3d056def70fb4043416d04d72 (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
36
37
38
39
40
41
42
43
44
45
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=altermime
pkgver=0.3.10
pkgrel=0
pkgdesc="program alter mime-encoded mailpacks"
url="http://www.pldaniels.com/altermime/"
arch="all"
license="custom"
depends=""
makedepends=""
install=""
subpackages=""
source="http://www.pldaniels.com/altermime/altermime-$pkgver.tar.gz
	makefile-flags.patch"

_builddir="$srcdir"/altermime-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	make || return 1
}

package() {
	cd "$_builddir"
	install -Dm755 altermime "$pkgdir"/usr/bin/altermime || return 1
	install -Dm644 "$_builddir"/LICENCE \
		"$pkgdir"/usr/share/doc/$pkgname/LICENCE || return 1
}

md5sums="aaf0ad8029958a2dc6da3abb4dc178c2  altermime-0.3.10.tar.gz
604775894fa4f8ddd9d44761ce2be2ea  makefile-flags.patch"
sha256sums="8334da6b55d4a05dfe1492389dfe1f289953053a21773849b060d7c856ddc36e  altermime-0.3.10.tar.gz
856be6eab5cf3e6c0a310a51e149802acceaef782b822cd574223e5aa75d831e  makefile-flags.patch"
sha512sums="8be68ef7451e08c39742193571be8fb537bbe68e494d2a1f1347a6a409ef81ef2fc119ab60d101f24ce566c588c471f7fc5ded2f3f9f9b5ed7e8b28ff1f5c29b  altermime-0.3.10.tar.gz
3b6f4f6d15eb4090db0e5466784d1c29cd9a4e6e2f5de30df9a743d177cb8952bfdcead4973265276c001b2b96734e40744a26d336f9a4d41e5644b35338e3b8  makefile-flags.patch"