Add movim-git
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
/imagick-*.tgz
|
||||
/php-imagick-*.pkg.tar.xz
|
||||
/php-imagick-*.src.tar.gz
|
||||
/pkg/
|
||||
/src/
|
||||
@@ -0,0 +1,10 @@
|
||||
FROM nubs/arch-build
|
||||
|
||||
MAINTAINER Spencer Rinehart <anubis@overthemonkey.com>
|
||||
|
||||
USER root
|
||||
|
||||
RUN pacman --sync --refresh --noconfirm --noprogressbar --quiet
|
||||
RUN pacman --sync --noconfirm --noprogressbar --quiet php imagemagick
|
||||
|
||||
USER build
|
||||
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2014-2016 Spencer Rinehart
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
@@ -0,0 +1,31 @@
|
||||
# Contributor: Spencer Rinehart <anubis@overthemonkey.com>
|
||||
|
||||
pkgname=php-imagick
|
||||
_extname=imagick
|
||||
pkgver=3.4.3
|
||||
pkgrel=3
|
||||
pkgdesc="PHP extension for IMagick"
|
||||
arch=('i686' 'x86_64' 'armv7h')
|
||||
url="https://pecl.php.net/package/${_extname}"
|
||||
license=('PHP')
|
||||
depends=('php>=5.4.0' 'imagemagick>=6.5.3')
|
||||
backup=("etc/php/conf.d/${_extname}.ini")
|
||||
install="php-${_extname}.install"
|
||||
source=("https://pecl.php.net/get/${_extname}-${pkgver}.tgz")
|
||||
md5sums=('d0ee25c007cd2a28cefccc0b9ee63a28')
|
||||
|
||||
build() {
|
||||
cd "${_extname}-${pkgver}"
|
||||
|
||||
phpize
|
||||
./configure --prefix=/usr
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${_extname}-${pkgver}"
|
||||
|
||||
make INSTALL_ROOT="${pkgdir}" install
|
||||
echo "extension=${_extname}.so" > "${_extname}.ini"
|
||||
install -D -m644 "${_extname}.ini" "${pkgdir}/etc/php/conf.d/${_extname}.ini"
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
# php-imagick-aur
|
||||
An [AUR] package build for PHP's [imagick] extension.
|
||||
|
||||
## Building
|
||||
You can of course build this package using [makepkg], but the recommended way
|
||||
of building this package is using [Docker]. This can be done like so:
|
||||
|
||||
```bash
|
||||
docker build --tag php-imagick-aur .
|
||||
docker run --rm --volume "$(pwd):/package" php-imagick-aur
|
||||
```
|
||||
|
||||
Alternatively, using [Docker Compose]:
|
||||
|
||||
```bash
|
||||
docker-compose run build
|
||||
```
|
||||
|
||||
This will start create a docker image tagged as php-imagick-aur and build the
|
||||
package inside the container. As a result you should get the built package in
|
||||
your current directory.
|
||||
|
||||
## License
|
||||
php-imagick-aur is licensed under the MIT license. See [LICENSE] for the full
|
||||
license text.
|
||||
|
||||
[AUR]: https://aur.archlinux.org/
|
||||
[imagick]: https://pecl.php.net/package/imagick
|
||||
[makepkg]: https://wiki.archlinux.org/index.php/Makepkg
|
||||
[Docker]: https://www.docker.com/
|
||||
[Docker Compose]: https://docs.docker.com/compose/
|
||||
[LICENSE]: https://github.com/nubs/php-imagick-aur/blob/master/LICENSE
|
||||
@@ -0,0 +1,4 @@
|
||||
build:
|
||||
build: .
|
||||
volumes:
|
||||
- ".:/package"
|
||||
@@ -0,0 +1,13 @@
|
||||
post_install() {
|
||||
echo '
|
||||
==> PHP extension
|
||||
|
||||
A config file was stored under /etc/php/conf.d/ with the extension enabled.
|
||||
'
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install $1
|
||||
}
|
||||
|
||||
# vim:set ts=2 sw=2 et:
|
||||
Reference in New Issue
Block a user