aboutsummaryrefslogtreecommitdiffstats
path: root/main/libmcrypt/APKBUILD
blob: 16b9f47ecfb7c0a7a0dec80e40b85cc1f378bdc4 (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
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=libmcrypt
pkgver=2.5.8
pkgrel=7
pkgdesc="A library which provides a uniform interface to several symmetric encryption algorithms"
url="http://mcrypt.sourceforge.net/"
arch="all"
license="GPL"
depends=""
makedepends="libtool"
install=
subpackages="$pkgname-doc $pkgname-dev"
source="http://downloads.sourceforge.net/mcrypt/${pkgname}-${pkgver}.tar.bz2"

prepare() {
	cd "$srcdir/$pkgname-$pkgver"
	update_config_sub || return 1
}

build() {
	cd "$srcdir/$pkgname-$pkgver"

	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--disable-posix-threads \
		|| return 1
	make || return 1
}

package() {
	cd "$srcdir/$pkgname-$pkgver"
	make DESTDIR="$pkgdir" install || return 1
}

sha512sums="6c05c42767401d66af67b0922b207d17cdb1c3efdbfdfb5b0c2e651821c48a8a6c6749debfa0206091b8a801f538fabe9f7d95ebc86d82c6b84c8001031d50fe  libmcrypt-2.5.8.tar.bz2"