summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Schleifenbaum2014-12-30 10:50:45 +0100
committerJohannes Schleifenbaum2014-12-30 10:50:45 +0100
commit9561d92cb73641a605a659d709919dc68de77cfc (patch)
treec543bd5ddaf6ac94c86ace7d6620dc6d532f4862
downloadaur-9561d92cb73641a605a659d709919dc68de77cfc.tar.gz
all packages in aur subfolder
-rw-r--r--.SRCINFO17
-rw-r--r--.gitignore6
-rw-r--r--PKGBUILD35
-rw-r--r--php-go.install8
4 files changed, 66 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..8078a5aa8d8
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = php-go
+ pkgdesc = A simple PHP build tool.
+ pkgver = 2.2.1
+ pkgrel = 1
+ url = https://github.com/herrera-io/php-go
+ install = php-go.install
+ arch = any
+ license = MIT
+ makedepends = php-box
+ makedepends = php-composer
+ makedepends = git
+ depends = php>=5.3.3
+ source = git+https://github.com/herrera-io/php-go.git#tag=2.2.1
+ sha1sums = SKIP
+
+pkgname = php-go
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..56ed74ec4ce
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,6 @@
+*.pkg.*
+pkg/
+src/
+*.pkg.*.sig
+*.src.tar.gz
+php-go
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f8b6ac119c4
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Johannes Schleifenbaum <johannes [at] js-webcoding [dot] de>
+# Please report issues at https://github.com/jojosch/pkgbuilds
+
+pkgname="php-go"
+pkgver=2.2.1
+pkgrel=1
+pkgdesc="A simple PHP build tool."
+url="https://github.com/herrera-io/php-go"
+license="MIT"
+arch=("any")
+depends=("php>=5.3.3")
+makedepends=("php-box" "php-composer" "git")
+install="${pkgname}.install"
+source=(
+ "git+https://github.com/herrera-io/php-go.git#tag=${pkgver}"
+)
+sha1sums=(
+ "SKIP"
+)
+
+build() {
+ cd "${srcdir}/${pkgname}"
+
+ composer install --prefer-dist --no-dev
+ php-box build
+}
+
+package() {
+ cd "${srcdir}/${pkgname}"
+
+ install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -D -m755 "go-${pkgver}.phar" "${pkgdir}/usr/share/webapps/bin/${pkgname}.phar"
+ install -d "${pkgdir}/usr/bin"
+ ln -s "/usr/share/webapps/bin/${pkgname}.phar" "${pkgdir}/usr/bin/${pkgname}"
+}
diff --git a/php-go.install b/php-go.install
new file mode 100644
index 00000000000..605a93eb74b
--- /dev/null
+++ b/php-go.install
@@ -0,0 +1,8 @@
+post_install() {
+ echo
+ echo "php-go is installed as executable 'php-go'."
+}
+
+post_upgrade() {
+ post_install
+} \ No newline at end of file