blob: a7ba0e8dc85c8775de43e4b6b7b61692afa89c66 (
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
|
# Maintainer: Mark Weiman
pkgname=php-alpm
_extname=alpm
pkgver=0.7
pkgrel=1
pkgdesc="A PHP extension to use Arch Linux's ALPM"
arch=('i686' 'x86_64')
url="https://github.com/markzz/php-alpm"
makedepends=('php>=7.0')
license=('LGPL2.1')
install="${pkgname}.install"
source=("php-alpm-${pkgver}.tar.gz::https://github.com/markzz/${pkgname}/archive/${pkgver}.tar.gz")
md5sums=('503ac648700e03a04d94e0bbef9854db')
build() {
cd "${pkgname}-${pkgver}"
phpize
./configure --with-php-config=/usr/bin/php-config --prefix=/usr
make
}
package_php-alpm() {
depends=("php" "pacman>=5.0")
cd "${pkgname}-${pkgver}"
make INSTALL_ROOT="${pkgdir}" install
echo "extension=${_extname}.so" > "${_extname}.ini"
install -D -m644 "${_extname}.ini" "${pkgdir}/etc/php/conf.d/${_extname}.ini"
}
|