summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Auditor2015-10-05 10:25:08 +0200
committerStefan Auditor2015-10-05 10:25:08 +0200
commitcb7e499adbb5103c97b6e46ced215b345de7d3be (patch)
tree75b40325b028fcdd55a4fec8e2b29d8a5ce9c719
downloadaur-cb7e499adbb5103c97b6e46ced215b345de7d3be.tar.gz
Initial release for upstream 2.0.1
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD22
-rw-r--r--phpunit-skeleton-generator.install8
3 files changed, 46 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..bfc9d5a4030
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = phpunit-skeleton-generator
+ pkgdesc = A tool that can generate skeleton test classes from production code classes and vice versa.
+ pkgver = 2.0.1
+ pkgrel = 1
+ url = https://github.com/sebastianbergmann/phpunit-skeleton-generator
+ install = phpunit-skeleton-generator.install
+ arch = any
+ license = BSD
+ depends = php
+ source = https://phar.phpunit.de/phpunit-skelgen-2.0.1.phar
+ source = https://raw.githubusercontent.com/sebastianbergmann/phpunit-skeleton-generator/2.0.1/LICENSE
+ sha512sums = 7b15ffafb4083f416fcde3c486a7333ac0d8b14c20e7478d6f9222754fed9680a1db56bd4d198481fc769b87e335510b69ada4f98f5c47a4eb6528cf0dc35e4c
+ sha512sums = 89011dee7edb6865985beb93757c084c9cee31e8b74bb0c10c5fa88db91b9d6645b98ee970a4d2ab377bf3b3bf52aacdba034c54143d4007b0e46787dc1207ab
+
+pkgname = phpunit-skeleton-generator
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..11b48b3196e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,22 @@
+# Maintainer: Stefan Auditor <stefan.auditor@erdfisch.de>
+pkgname=phpunit-skeleton-generator
+_pkgname=phpunit-skelgen
+pkgver=2.0.1
+pkgrel=1
+pkgdesc="A tool that can generate skeleton test classes from production code classes and vice versa."
+url="https://github.com/sebastianbergmann/phpunit-skeleton-generator"
+arch=("any")
+license=("BSD")
+depends=("php")
+install="${pkgname}.install"
+source=("https://phar.phpunit.de/${_pkgname}-${pkgver}.phar"
+ "https://raw.githubusercontent.com/sebastianbergmann/${pkgname}/${pkgver}/LICENSE")
+sha512sums=('7b15ffafb4083f416fcde3c486a7333ac0d8b14c20e7478d6f9222754fed9680a1db56bd4d198481fc769b87e335510b69ada4f98f5c47a4eb6528cf0dc35e4c'
+ '89011dee7edb6865985beb93757c084c9cee31e8b74bb0c10c5fa88db91b9d6645b98ee970a4d2ab377bf3b3bf52aacdba034c54143d4007b0e46787dc1207ab')
+
+package() {
+ install -D -m 644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -D -m 755 "${srcdir}/${_pkgname}-${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/phpunit-skeleton-generator.install b/phpunit-skeleton-generator.install
new file mode 100644
index 00000000000..55c57b216ff
--- /dev/null
+++ b/phpunit-skeleton-generator.install
@@ -0,0 +1,8 @@
+post_install() {
+ echo
+ echo "Warning: phar.so must be enabled and date.timezone set in your php.ini"
+}
+
+post_upgrade() {
+ post_install
+}