blob: dda1fa68c45803f58088b8b606bb34d94db1e9fe (
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
|
# Packager: Joseph R. Quinn <quinn.josephr@protonmail.com>
# Maintainer: Joseph R. Quinn <quinn.josephr@protonmail.com>
pkgname=php-psr
pkgver=1.1.0
pkgrel=1
pkgdesc="PHP extension providing the accepted PSR interfaces."
arch=('any')
url="https://github.com/jbboehr/php-psr"
license=('BSD')
depends=('php>=5.5')
provides=("$pkgname")
backup=('etc/php/conf.d/psr.ini')
source=("https://github.com/jbboehr/$pkgname/archive/v$pkgver.tar.gz"
'psr.ini')
sha1sums=('ff2ac61953f7a141704ef6151e29ee1b9a2d651e'
'a5111be5b2ea0c2be3a2b6795be6f47d60dc0d77')
build() {
cd "$pkgname-$pkgver"
phpize
./configure --prefix=/usr
make
}
package() {
cd "$pkgname-$pkgver"
make INSTALL_ROOT="$pkgdir/" install
install -Dm644 "$srcdir/psr.ini" "$pkgdir/etc/php/conf.d/psr.ini"
install -Dm644 "$srcdir/$pkgname-$pkgver/LICENSE.md" "$pkgdir/usr/share/licenses/php-psr/LICENSE"
}
|