summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fb68d1131b50b649f417d6cac3c38aea5e2f91f5 (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
# Maintainer: Timo Sarawinski <timo@it-kraut.net>

pkgname=php80-memcached
_pkgname=php-memcached
pkgver=3.2.0
pkgrel=1
pkgdesc="PHP extension for interfacing with memcached via libmemcached library"
arch=('x86_64')
url="https://github.com/php-memcached-dev/php-memcached"
license=('PHP')
depends=('php80' 'libmemcached')
makedepends=('git' 'php80-cli')
backup=('etc/php80/conf.d/memcached.ini')
source=("git+https://github.com/php-memcached-dev/php-memcached.git")
sha256sums=('SKIP')


build() {
  cd "$srcdir/$_pkgname"

  phpize80
  ./configure --prefix=/usr --with-php-config=/usr/bin/php-config80
  make
}

package() {
  cd "$srcdir/$_pkgname"

  make INSTALL_ROOT="$pkgdir" install

  install -d "$pkgdir/etc/php80/conf.d"
  echo ';extension=memcached.so' >"$pkgdir/etc/php80/conf.d/memcached.ini"
}

# vim:set ts=2 sw=2 et: