diff options
author | Nick Milosevic | 2018-03-16 10:08:37 -0700 |
---|---|---|
committer | Nick Milosevic | 2018-03-16 10:08:37 -0700 |
commit | f31c310457ec2a78888d67641bcba58f5ea15191 (patch) | |
tree | 27e16efeb0371e9e3063009d506a00a08f0a23c6 | |
download | aur-php-facedetect-git.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 38 | ||||
-rw-r--r-- | php-facedetect.install | 14 |
3 files changed, 70 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..a334c652c111 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = php-facedetect-git + pkgdesc = PHP extension for opencv face detection + pkgver = 1.1.0.r15.gc717941 + pkgrel = 1 + url = https://github.com/infusion/PHP-Facedetect + install = php-facedetect.install + arch = any + license = BSD + makedepends = git + depends = php>=5.3 + depends = opencv>=2.0 + depends = gtkglext + backup = etc/php/conf.d/facedetect.ini + source = php-facedetect::git+https://github.com/infusion/PHP-Facedetect.git + sha512sums = SKIP + +pkgname = php-facedetect-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..6b37b56c8449 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Nick Milosevic <nick000@gmail.com> + +_pkgname=php-facedetect +pkgname=${_pkgname}-git +pkgver=1.1.0.r15.gc717941 +pkgrel=1 +pkgdesc="PHP extension for opencv face detection" +license=('BSD') +arch=('any') +url="https://github.com/infusion/PHP-Facedetect" +depends=( 'php>=5.3' 'opencv>=2.0' 'gtkglext') +makedepends=('git') +backup=('etc/php/conf.d/facedetect.ini') +install=php-facedetect.install +source=("${_pkgname}"::"git+https://github.com/infusion/PHP-Facedetect.git") +sha512sums=('SKIP') + +pkgver() { + #cd "${_pkgname}-${pkgver}" + cd $srcdir/${_pkgname} + git describe --long --tags | sed 's/\([^v-]*-g\)/r\1/;s/-/./g' | sed 's/^v//g' +} + +build() { + cd "${srcdir}/${_pkgname}" + + phpize || return 1 + ./configure --prefix=/usr + make || return 1 +} + +package() { + cd "$srcdir/${_pkgname}" + + echo ';extension=facedetect.so' > facedetect.ini + install -D -m744 "$srcdir/${_pkgname}/modules/facedetect.so" "$pkgdir/usr/lib/php/modules/facedetect.so" + install -D -m644 facedetect.ini "$pkgdir/etc/php/conf.d/facedetect.ini" +} diff --git a/php-facedetect.install b/php-facedetect.install new file mode 100644 index 000000000000..c59907066182 --- /dev/null +++ b/php-facedetect.install @@ -0,0 +1,14 @@ +post_install() { + echo ' + ==> PHP extension + + A config file was stored under /etc/php/conf.d/. In order to use this + extension make sure to uncomment it from its config file. + ' +} + +post_upgrade() { + post_install $1 +} + +# vim:set ts=4 sw=4: |