blob: 2b10cc04288fa4f1baa87f1548b1d2cdbbf2d14a (
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
|
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
_php=php7
pkgname=mongo-${_php}-library
_realname=mongo-php-library
pkgver=1.3.2
pkgrel=0
pkgdesc="High-level abstraction around the lower-level drivers for PHP"
url="https://github.com/mongodb/mongo-php-library"
arch="noarch"
license="Apache-2.0"
makedepends="$depends_dev ${_php}-mongodb"
subpackages="$pkgname-doc"
options="!check" # require mongodb server
source="$_realname-$pkgver.tar.gz::https://github.com/mongodb/$_realname/archive/$pkgver.tar.gz"
builddir="$srcdir"/$_realname-$pkgver
build() {
cd "$builddir"
return 0
}
package() {
cd "$builddir"
mkdir -p "$pkgdir"/usr/share/doc/mongo-${_php}-library/docs
mkdir -p "$pkgdir"/usr/lib/${_php}/vendor/mongodb/mongodb
mv src/* "$pkgdir"/usr/lib/${_php}/vendor/mongodb/mongodb
mv tests "$pkgdir"/usr/lib/${_php}/vendor/mongodb/mongodb/
mv docs/* "$pkgdir"/usr/share/doc/mongo-${_php}-library/docs
mv LICENSE README.md "$pkgdir"/usr/share/doc/mongo-${_php}-library
}
sha512sums="8015da0abc8fb9954947cbb446eb83a8f58852f36570fa1b0e9c1522a8802ac8f12a2e785378c01ae29dff1396211914f619fb1e4984733bcbd0263d429fb12f mongo-php-library-1.3.2.tar.gz"
|