summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorStephen Berquet2015-07-10 11:44:15 +0200
committerStephen Berquet2015-07-10 11:44:15 +0200
commit38c448a9f6da716a16856443a57c6e6bd8bf34ff (patch)
tree2b57970736a4e23d86fdf903b74bac53a1e742ce /PKGBUILD
downloadaur-38c448a9f6da716a16856443a57c6e6bd8bf34ff.tar.gz
aur4 migration
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD30
1 files changed, 30 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..8479f769bf7
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer: Samleybrize <stephen.berquet at gmail dot com>
+pkgname=php-ncurses
+pkgver=1.0.2
+pkgrel=1
+pkgdesc="Terminal screen handling and optimization package"
+url="http://pecl.php.net/package/ncurses"
+arch=('x86_64' 'i686')
+license=('PHP')
+depends=('php' 'ncurses')
+backup=('etc/php/conf.d/ncurses.ini')
+
+source=("http://pecl.php.net/get/ncurses-${pkgver}.tgz")
+
+sha256sums=('7fa4998d06a00a094276e5283fd6a408cbf78cd2d3b889fe6ab51be3780c9063')
+
+build() {
+ cd "$srcdir/ncurses-$pkgver"
+
+ phpize
+ ./configure --prefix=/usr --with-ncurses
+ make
+}
+
+package() {
+ cd "$srcdir/ncurses-$pkgver"
+
+ make INSTALL_ROOT="$pkgdir" install
+ echo 'extension=ncurses.so' > ncurses.ini
+ install -Dm644 ncurses.ini "$pkgdir/etc/php/conf.d/ncurses.ini"
+}