[arch-commits] Commit in php-imagick/repos (2 files)
Antonio Rojas
arojas at archlinux.org
Thu Oct 31 08:33:49 UTC 2019
Date: Thursday, October 31, 2019 @ 08:33:48
Author: arojas
Revision: 521034
archrelease: copy trunk to community-staging-x86_64
Added:
php-imagick/repos/community-staging-x86_64/
php-imagick/repos/community-staging-x86_64/PKGBUILD
(from rev 521033, php-imagick/trunk/PKGBUILD)
----------+
PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
Copied: php-imagick/repos/community-staging-x86_64/PKGBUILD (from rev 521033, php-imagick/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2019-10-31 08:33:48 UTC (rev 521034)
@@ -0,0 +1,44 @@
+# Maintainer: David Runge <dave at sleepmap.de>
+
+pkgname=php-imagick
+_name=imagick
+pkgver=3.4.4
+pkgrel=3
+pkgdesc="PHP extension to create and modify images using the ImageMagick library"
+arch=('x86_64')
+url="https://github.com/mkoppanen/imagick"
+license=('PHP')
+depends=('php' 'imagemagick' 'ttf-dejavu')
+checkdepends=('librsvg')
+backup=("etc/php/conf.d/${_name}.ini")
+source=("$pkgname-$pkgver.tar.gz::https://github.com/mkoppanen/${_name}/archive/${pkgver}.tar.gz")
+sha512sums=('f3d3c74b4d0bb5c2dd986a8b960096ff200daa82e60fdd1467a54944be06810923b4e68a4f70194e25c8176afd9a609b9f2545054520ec759202e5fc3f1e827b')
+
+prepare() {
+ mv -v "${_name}-$pkgver" "$pkgname-$pkgver"
+ cd "$pkgname-$pkgver"
+ echo ";extension=${_name}" > "${_name}.ini"
+ phpize
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+ ./configure --prefix=/usr
+ make
+}
+
+check() {
+ cd "$pkgname-$pkgver"
+ export NO_INTERACTION="true"
+ make -k test
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ make INSTALL_ROOT="$pkgdir/" install
+ install -vDm 644 "${_name}.ini" -t "${pkgdir}/etc/php/conf.d/"
+ install -vDm 644 {ChangeLog,CREDITS,README.md} \
+ -t "${pkgdir}/usr/share/doc/${pkgname}/"
+ install -vDm 644 examples/*.php \
+ -t "${pkgdir}/usr/share/doc/${pkgname}/examples"
+}
More information about the arch-commits
mailing list