[arch-commits] Commit in php-igbinary/repos (3 files)
Pierre Schmitz
pierre at archlinux.org
Mon Jan 18 17:45:06 UTC 2021
Date: Monday, January 18, 2021 @ 17:45:06
Author: pierre
Revision: 823584
db-move: moved php-igbinary from [community-staging] to [community-testing] (x86_64)
Added:
php-igbinary/repos/community-testing-x86_64/
php-igbinary/repos/community-testing-x86_64/PKGBUILD
(from rev 823583, php-igbinary/repos/community-staging-x86_64/PKGBUILD)
Deleted:
php-igbinary/repos/community-staging-x86_64/
----------+
PKGBUILD | 82 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 82 insertions(+)
Copied: php-igbinary/repos/community-testing-x86_64/PKGBUILD (from rev 823583, php-igbinary/repos/community-staging-x86_64/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2021-01-18 17:45:06 UTC (rev 823584)
@@ -0,0 +1,82 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=igbinary
+pkgbase=php-igbinary
+pkgname=('php-igbinary' 'php7-igbinary')
+pkgver=3.2.1
+pkgrel=2
+pkgdesc="A drop in replacement for the standard php serializer"
+arch=('x86_64')
+url="https://github.com/igbinary/igbinary"
+license=('BSD')
+depends=('glibc')
+makedepends=('php7' 'php')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/${_name}/${_name}/archive/${pkgver}.tar.gz")
+sha512sums=('fdab404eb6ab8e64c0d3b92c1c12e796a182a90084acc78a31a31dece62075d310d298c545d149d10b188f0467108a0429ee750747e073fa7fba752162b64eb4')
+b2sums=('4eda60b49a2f1e3e822a0fbff8f23cd546517a51193f0f4f2d4646f99888552aad1877f80a67f0d655e0a51771c539efe5b0d8b5c8ce7d88c8403305dc7570df')
+
+prepare() {
+ mv -v "${_name}-${pkgver}" "$pkgbase-$pkgver"
+ # disable the extension by default
+ sed 's/extension/;extension/g' -i "$pkgbase-$pkgver/${_name}.php.ini"
+
+ cp -av "$pkgbase-$pkgver" "${pkgname[1]}-$pkgver"
+ (
+ cd "${pkgbase}-$pkgver"
+ phpize
+ )
+ (
+ cd "${pkgname[1]}-$pkgver"
+ phpize7
+ )
+}
+
+build() {
+ (
+ cd "$pkgbase-$pkgver"
+ ./configure --prefix=/usr \
+ --enable-igbinary
+ make
+ )
+ (
+ cd "${pkgname[1]}-$pkgver"
+ ./configure --prefix=/usr \
+ --enable-igbinary
+ make
+ )
+}
+
+check() {
+ (
+ cd "$pkgbase-$pkgver"
+ NO_INTERACTION=1 make -k test
+ )
+ (
+ cd "${pkgname[1]}-$pkgver"
+ NO_INTERACTION=1 make -k test
+ )
+}
+
+package_php-igbinary() {
+ depends+=('php')
+ backup=("etc/php/conf.d/${_name}.ini")
+
+ cd "$pkgname-$pkgver"
+ make INSTALL_ROOT="$pkgdir/" install
+ install -vDm 644 "${_name}.php.ini" "${pkgdir}/etc/php/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}"
+}
+
+package_php7-igbinary() {
+ depends+=('php7')
+ backup=("etc/php7/conf.d/${_name}.ini")
+
+ cd "$pkgname-$pkgver"
+ make INSTALL_ROOT="$pkgdir/" install
+ install -vDm 644 "${_name}.php.ini" "${pkgdir}/etc/php7/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}"
+}
More information about the arch-commits
mailing list