summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c7eaaddaa6662fa28c96f144b18c72ab6a834e6e (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: Joseph R. Quinn <quinn period joseph r at gmail dot com
pkgname=php-psr
pkgver=0.7.0  
pkgrel=1
pkgdesc="PHP extension providing the accepted PSR interfaces."
arch=('any')
url="https://github.com/jbboehr/php-psr"
license=('BSD')
depends=('php')
makedepends=('gcc>=4.4')
provides=("$pkgname")
backup=('etc/php/conf.d/psr.ini')
source=("https://github.com/jbboehr/$pkgname/archive/v$pkgver.tar.gz"
  'psr.ini')
sha1sums=('9d44acc24a37e90e08cf74c02817a80d750cd1b9'
          '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/LICENSE.md" "$pkgdir/usr/share/licenses/php-psr/LICENSE"
}