summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Schleifenbaum2014-12-30 10:50:45 +0100
committerJohannes Schleifenbaum2014-12-30 10:50:45 +0100
commit8d3492f918207891d65a9e884fe02ab0b308ff5e (patch)
tree760ce90138a24f0837d65b2e0dc6a34a782b07b7
downloadaur-8d3492f918207891d65a9e884fe02ab0b308ff5e.tar.gz
all packages in aur subfolder
-rw-r--r--.SRCINFO17
-rw-r--r--.gitignore6
-rw-r--r--PKGBUILD41
-rw-r--r--php-sha3.install8
4 files changed, 72 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..79d1cd0b12a
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = php-sha3
+ pkgdesc = PHP extension that implements SHA-3 (Keccak)
+ pkgver = 20140719.5.414f8f7
+ pkgrel = 3
+ url = https://github.com/strawbrary/php-sha3
+ install = php-sha3.install
+ arch = i686
+ arch = x86_64
+ license = MIT
+ makedepends = git
+ depends = php
+ source = php-sha3::git+https://github.com/strawbrary/php-sha3.git
+ sha1sums = SKIP
+ sha256sums = SKIP
+
+pkgname = php-sha3
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..4345b48c0be
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,6 @@
+*.pkg.*
+pkg/
+src/
+*.pkg.*.sig
+*.src.tar.gz
+php-sha3
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..a3f92d769d0
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: Johannes Schleifenbaum <johannes [at] js-webcoding [dot] de>
+# Please report issues at https://github.com/jojosch/pkgbuilds
+
+pkgname=php-sha3
+pkgver=20140719.5.414f8f7
+pkgrel=3
+pkgdesc="PHP extension that implements SHA-3 (Keccak)"
+url="https://github.com/strawbrary/php-sha3"
+license="MIT"
+arch=('i686' 'x86_64')
+depends=('php')
+makedepends=('git')
+install="${pkgname}.install"
+source=("${pkgname}::git+https://github.com/strawbrary/${pkgname}.git")
+sha1sums=('SKIP')
+sha256sums=('SKIP')
+
+pkgver () {
+ cd "${srcdir}/${pkgname}"
+ echo "$(date +"%Y%m%d").$(git rev-list --count HEAD).$(git describe --always)"
+}
+
+build() {
+ cd "${srcdir}/${pkgname}"
+ phpize
+ ./configure --enable-sha3
+ make
+ NO_INTERACTION=1 make test
+}
+
+package() {
+ cd "${srcdir}/${pkgname}"
+ make INSTALL_ROOT="${pkgdir}" install
+
+ mkdir -p "${pkgdir}/etc/php/conf.d"
+
+ echo "extension=sha3.so" > "sha3.ini"
+ install -Dm644 sha3.ini "${pkgdir}/etc/php/conf.d/sha3.ini"
+
+ install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
diff --git a/php-sha3.install b/php-sha3.install
new file mode 100644
index 00000000000..f0b116f51a7
--- /dev/null
+++ b/php-sha3.install
@@ -0,0 +1,8 @@
+post_install() {
+ echo
+ echo "You may wish to uncomment/change the settings found in"
+ echo " /etc/php/conf.d/sha3.ini"
+}
+post_upgrade() {
+ post_install
+} \ No newline at end of file