summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Berquet2015-07-10 11:44:15 +0200
committerStephen Berquet2015-07-10 11:44:15 +0200
commit38c448a9f6da716a16856443a57c6e6bd8bf34ff (patch)
tree2b57970736a4e23d86fdf903b74bac53a1e742ce
downloadaur-38c448a9f6da716a16856443a57c6e6bd8bf34ff.tar.gz
aur4 migration
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD30
2 files changed, 46 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..01310785784
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = php-ncurses
+ pkgdesc = Terminal screen handling and optimization package
+ pkgver = 1.0.2
+ pkgrel = 1
+ url = http://pecl.php.net/package/ncurses
+ arch = x86_64
+ arch = i686
+ license = PHP
+ depends = php
+ depends = ncurses
+ backup = etc/php/conf.d/ncurses.ini
+ source = http://pecl.php.net/get/ncurses-1.0.2.tgz
+ sha256sums = 7fa4998d06a00a094276e5283fd6a408cbf78cd2d3b889fe6ab51be3780c9063
+
+pkgname = php-ncurses
+
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"
+}