summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 13b0acf66d9355e2ac31147c45cd3e87f310f6d5 (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
35
36
37
38
39
# Maintainer: Dringsim <dringsim@qq.com>
# Contributor: Felix Golatofski <contact@xdfr.de>
# Contributor: Jakob Gahde <j5lx@fmail.co.uk>

_pkgname=xattr
pkgname=php-${_pkgname}
pkgver=1.4.0
pkgrel=2
pkgdesc="PHP extension that allows to manipulate extended attributes on filesystems that support them"
arch=('i686' 'x86_64')
license=('PHP')
url='https://pecl.php.net/package/xattr'
depends=('php' 'attr')
backup=('etc/php/conf.d/xattr.ini')
source=("https://pecl.php.net/get/${_pkgname}-${pkgver}.tgz")
sha256sums=('744d2a3f1469de6d3b5f30b5b17095efc714c5f71c8af3734afdd9e4819c140b')

build() {
  cd "${srcdir}/${_pkgname}-${pkgver}"

  phpize
  ./configure
  make
}

check() {
    cd "${srcdir}/${_pkgname}-${pkgver}"

    make test
}

package() {
  cd "${srcdir}/${_pkgname}-${pkgver}"

  make install INSTALL_ROOT="${pkgdir}"

  install -dm0755 "$pkgdir/etc/php/conf.d"
  echo ';extension=xattr.so' > "$pkgdir/etc/php/conf.d/xattr.ini"
}