diff options
author | celogeek | 2021-02-17 21:16:35 +0100 |
---|---|---|
committer | celogeek | 2021-02-17 21:16:35 +0100 |
commit | f3713774f837445b4a222c45dc591a1873804a0f (patch) | |
tree | 52e2a1b281895a3d6f077fa37af432625ba5152f | |
download | aur-f3713774f837445b4a222c45dc591a1873804a0f.tar.gz |
init
-rw-r--r-- | .SRCINFO | 30 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 52 | ||||
-rw-r--r-- | pdlib.ini | 2 |
4 files changed, 88 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..c57d93888f12 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,30 @@ +pkgbase = php7-pdlib + pkgdesc = PDlib - A PHP extension for Dlib + pkgver = 1.0.2 + pkgrel = 1 + url = https://github.com/goodspb/pdlib + arch = x86_64 + license = MIT License + makedepends = cmake + depends = dlib + depends = php + depends = libx11 + depends = openblas + depends = cblas + depends = lapack + depends = libsm + depends = libice + depends = libxext + depends = giflib4 + depends = libpng + depends = zlib + depends = libjpeg-turbo + depends = sqlite + depends = fftw + source = https://github.com/goodspb/pdlib/archive/v1.0.2.tar.gz + source = pdlib.ini + sha256sums = e91a3c7396ee2027f957fa34fcc2567e614e4e1c1570ae7d5d16d4203541ba4a + sha256sums = c325ddedc2e685f12119a0f4e8a1a45430a1ecb15368179f4c0c7153352b8a0e + +pkgname = php7-pdlib + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..1aee993719d9 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.zst +*.tar.gz +pkg/ +src/ diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..f8a116a12e7b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,52 @@ +# Maintainer: Celogeek <arch-aur-f5d67e@celogeek.com> + +pkgname=("php7-pdlib") +_pkgbase=("pdlib") +pkgver=1.0.2 +pkgrel=1 +pkgdesc="PDlib - A PHP extension for Dlib" +arch=('x86_64') +url="https://github.com/goodspb/pdlib" +license=('MIT License') +depends=('dlib' + 'php' + 'libx11' + 'openblas' + 'cblas' + 'lapack' + 'libsm' + 'libice' + 'libxext' + 'giflib4' + 'libpng' + 'zlib' + 'libjpeg-turbo' + 'sqlite' + 'fftw' + ) + +makedepends=('cmake') +source=("https://github.com/goodspb/pdlib/archive/v$pkgver.tar.gz" + "pdlib.ini") +sha256sums=('e91a3c7396ee2027f957fa34fcc2567e614e4e1c1570ae7d5d16d4203541ba4a' + 'c325ddedc2e685f12119a0f4e8a1a45430a1ecb15368179f4c0c7153352b8a0e') + +build() { + cd "${srcdir}/${_pkgbase}-${pkgver}" + phpize7 + LDFLAGS="-L/usr/lib/giflib4" CXXFLAGS="-O2 -I/usr/include/giflib4" ./configure --with-libdir=/usr/lib/giflib4 + make +} + +check() { + cd "${srcdir}/${_pkgbase}-${pkgver}" + make NO_INTERACTION=1 test +} + +package() { + cd "${srcdir}/${_pkgbase}-${pkgver}" + install -Dm755 "modules/pdlib.so" "${pkgdir}/usr/lib/php7/modules/pdlib.so" + # install ini file + install -Dm644 "../pdlib.ini" "${pkgdir}/etc/php7/conf.d/pdlib.ini" +} + diff --git a/pdlib.ini b/pdlib.ini new file mode 100644 index 000000000000..ef1eabad5d32 --- /dev/null +++ b/pdlib.ini @@ -0,0 +1,2 @@ +[pdlib] +extension=pdlib.so |