diff options
author | Tomasz Gruszka | 2021-02-21 14:34:51 +0100 |
---|---|---|
committer | Tomasz Gruszka | 2021-02-21 14:34:51 +0100 |
commit | 03d80c37a89749d3497d4b81fddd516d12e1dc82 (patch) | |
tree | e30d63fda7c29f1f5e6e6dfd8d608260cfdde11c | |
download | aur-03d80c37a89749d3497d4b81fddd516d12e1dc82.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | .gitignore | 19 | ||||
-rw-r--r-- | PKGBUILD | 45 |
3 files changed, 79 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..0527aa12c446 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = php74-igbinary + pkgdesc = A drop in replacement for the standard php serializer (PHP 7.4) + pkgver = 3.2.1 + pkgrel = 1 + url = https://pecl.php.net/package/igbinary + arch = x86_64 + license = BSD + depends = glibc + depends = php74 + backup = etc/php74/conf.d/igbinary.ini + source = https://pecl.php.net/get/igbinary-3.2.1.tgz + sha512sums = ab291f0479d07c2943193ff59fb32cee1e61ad16423d7d3e06ab94e1be57644619f2d0ee6d26c849b5a95d488e4c1e7e2671ebf63ef58a5889d024a95d14c2e0 + +pkgname = php74-igbinary + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..553161727b30 --- /dev/null +++ b/.gitignore @@ -0,0 +1,19 @@ +*.zip +*.jar +*.tar +*.tgz +*.tbz2 +*.gz +*.bz2 +*.xz +*.gem +*.run +*.deb +*.rpm +*.sig +*.log +*.asc +*.zst +/src +/pkg +*.kate-swp diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..ec08ade2885d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,45 @@ +# Maintainer: Tomasz Gruszka <tompear79@gmail.com> +# Contributor: Matt Harrison <matt@harrison.us.com> +# Contributor: David Runge <dvzrv@archlinux.org> + +_name=igbinary +_phpversion=74 +pkgname=php${_phpversion}-${_name} +pkgver=3.2.1 +pkgrel=1 +pkgdesc="A drop in replacement for the standard php serializer (PHP 7.4)" +arch=('x86_64') +url="https://pecl.php.net/package/igbinary" +license=('BSD') +depends=('glibc' "php${_phpversion}") +backup=("etc/php${_phpversion}/conf.d/${_name}.ini") +source=("https://pecl.php.net/get/${_name}-${pkgver}.tgz") +sha512sums=('ab291f0479d07c2943193ff59fb32cee1e61ad16423d7d3e06ab94e1be57644619f2d0ee6d26c849b5a95d488e4c1e7e2671ebf63ef58a5889d024a95d14c2e0') + +prepare() { + mv -v "${_name}-${pkgver}" "$pkgname-$pkgver" + cd "$pkgname-$pkgver" + # disable the extension by default + sed 's/extension/;extension/g' -i "${_name}.php.ini" + phpize${_phpversion} +} + +build() { + cd "$pkgname-$pkgver" + ./configure --prefix=/usr \ + --enable-igbinary + make +} + +check() { + cd "$pkgname-$pkgver" + NO_INTERACTION=1 make -k test +} + +package() { + cd "$pkgname-$pkgver" + make INSTALL_ROOT="$pkgdir/" install + install -vDm 644 "${_name}.php.ini" "${pkgdir}/etc/php${_phpversion}/conf.d/${_name}.ini" + install -vDm 644 COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}" + install -vDm 644 {CREDITS,NEWS,README.md} -t "${pkgdir}/usr/share/doc/${pkgname}" +} |