blob: 438f9e2bf5008ac9152ff9faece14884a69eda84 (
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
|
# Maintainer: Ben Reichert <ben@tonzy.com>
pkgname=php5-libsodium
pkgver=1.0.6
pkgrel=1
pkgdesc="php wrapper for libsodium library"
url="https://github.com/jedisct1/libsodium-php"
arch="all"
license="ISC"
depends="php5"
depends_dev=""
makedepends="libsodium-dev libc-dev gcc make autoconf php5-dev"
install=""
source="$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz"
builddir="$srcdir/libsodium-php-$pkgver"
build() {
cd "$builddir"
phpize --clean || return 1
phpize || return 1
./configure --prefix=/usr/ || return 1
make || return 1
}
package() {
install -d "$pkgdir/etc/php5/conf.d/"
install -d "$pkgdir/usr/lib/php5/modules/"
install -Dm755 "$builddir/modules/libsodium.so" "$pkgdir/usr/lib/php5/modules"
echo "extension=libsodium.so" >> "$pkgdir/etc/php5/conf.d/libsodium.ini"
}
md5sums="30584a13fda5d4767cffb52c641ffc9b php5-libsodium-1.0.6.tar.gz"
sha256sums="537944529e7c591e4bd6c73f37e926e538e8ff1f6384747c301436fb78269b9c php5-libsodium-1.0.6.tar.gz"
sha512sums="8ac239d4573988a1f208bb9442aa982304ade7f419e53a56f00de73972717c3336c74563a92bf4b17d3573503468677a24f7d0cd87f1c8f91095b75b8aa19740 php5-libsodium-1.0.6.tar.gz"
|