summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3f94a4049f3d103515a01fd0b1bfbf0873ac9293 (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: Tomasz Gruszka <tompear79@gmail.com>
# Contributor: Timo Sarawinski <timo@it-kraut.net>

pkgname=php74-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=('php74' 'libmemcached')
makedepends=('git')
backup=('etc/php74/conf.d/memcached.ini')
source=("git+https://github.com/php-memcached-dev/php-memcached.git")
sha256sums=('SKIP')

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

  phpize74
  ./configure --prefix=/usr --with-php-config=/usr/bin/php-config74
  make
}

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

  make INSTALL_ROOT="$pkgdir" install

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

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