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

pkgname=php73-memcached
_pkgname=php-memcached
pkgver=3.1.5
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=('php73' 'libmemcached')
makedepends=('git')
backup=('etc/php73/conf.d/memcached.ini')
source=("git+https://github.com/php-memcached-dev/php-memcached.git#tag=v$pkgver")
sha256sums=('SKIP')

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

  phpize73
  ./configure --prefix=/usr 
  make
}

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

  make INSTALL_ROOT="$pkgdir" install

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

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