summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Hanna2016-07-10 01:08:01 +0200
committerSimon Hanna2016-07-10 01:08:01 +0200
commit1a4f0c6ad12c4a0348f476ca0ab78191d3298d5b (patch)
tree08a2b9369ac07a08761813a16b9b49b780cfa7be
parent057a029df1c32f16c1e277c96595a292d9f6c4db (diff)
downloadaur-1a4f0c6ad12c4a0348f476ca0ab78191d3298d5b.tar.gz
upgpkg: filebin 0.9.14-1
upstream release
-rw-r--r--.SRCINFO9
-rw-r--r--PKGBUILD22
2 files changed, 16 insertions, 15 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 291751be640..1bce1bd0039 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,28 +1,27 @@
pkgbase = filebin
pkgdesc = A pastebin service written in PHP
- pkgver = 0.9.8
+ pkgver = 0.9.14
pkgrel = 1
url = https://wiki.server-speed.net/projects/filebin
install = filebin.install
arch = any
license = AGPL
makedepends = nodejs
+ makedepends = git
depends = php
depends = pygmentize
- depends = perl-text-markdown
depends = python-ansi2html
depends = php-gd
depends = imagemagick
- depends = qrencode
options = !strip
options = emptydirs
backup = etc/webapps/filebin/config-local.php
backup = etc/webapps/filebin/contact-info.php
backup = etc/webapps/filebin/database.php
backup = etc/webapps/filebin/memcached.php
- source = https://github.com/Bluewind/filebin/archive/0.9.8.tar.gz
+ source = git+https://github.com/Bluewind/filebin.git
source = filebin-nginx.conf
- sha256sums = df60f6dd49d5d01a82bff037bde80e9db681482eb851c06a735bf0637ddf6044
+ sha256sums = SKIP
sha256sums = 5500d423d798478bf4f7bb0a147fe8a42b00e843513dd70665ec81f304a6c729
pkgname = filebin
diff --git a/PKGBUILD b/PKGBUILD
index ef7791d2950..5d55f9c7be8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,19 +1,17 @@
# Maintainer: Simon Hanna<simon DOT Hanna AT serve-me DOT info>
pkgname=filebin
-pkgver=0.9.8
+pkgver=0.9.14
pkgrel=1
pkgdesc="A pastebin service written in PHP"
arch=('any')
url="https://wiki.server-speed.net/projects/filebin"
license=('AGPL')
-makedepends=('nodejs')
+makedepends=('nodejs' 'git')
depends=('php'
'pygmentize'
- 'perl-text-markdown'
'python-ansi2html'
'php-gd'
'imagemagick'
- 'qrencode'
)
backup=('etc/webapps/filebin/config-local.php'
'etc/webapps/filebin/contact-info.php'
@@ -22,16 +20,23 @@ backup=('etc/webapps/filebin/config-local.php'
)
install=filebin.install
options=('!strip' 'emptydirs')
-source=("https://github.com/Bluewind/filebin/archive/${pkgver}.tar.gz"
+source=("git+https://github.com/Bluewind/filebin.git"
'filebin-nginx.conf'
)
-sha256sums=('df60f6dd49d5d01a82bff037bde80e9db681482eb851c06a735bf0637ddf6044'
+sha256sums=('SKIP'
'5500d423d798478bf4f7bb0a147fe8a42b00e843513dd70665ec81f304a6c729')
+build () {
+ cd ${srcdir}/filebin
+ git checkout ${pkgver}
+ git submodule update --init --recursive
+ scripts/optimize_js.sh
+}
+
package() {
mkdir -p ${pkgdir}/usr/share/webapps
mkdir -p ${pkgdir}/etc/webapps/filebin
- cp -ra ${srcdir}/filebin-$pkgver/ ${pkgdir}/usr/share/webapps/filebin/
+ cp -ra ${srcdir}/filebin/ ${pkgdir}/usr/share/webapps/filebin/
cp filebin-nginx.conf ${pkgdir}/usr/share/webapps/filebin
cd ${pkgdir}/usr/share/webapps/filebin
cp application/config/example/{config-local,database,memcached}.php ${pkgdir}/etc/webapps/filebin
@@ -39,9 +44,6 @@ package() {
cp data/local/examples/contact-info.php ${pkgdir}/etc/webapps/filebin
ln -s /etc/webapps/filebin/contact-info.php data/local
- # optimizie javascript
- sh scripts/optimize_js.sh
-
# removing unnecessary data for a production environment
rm -rf .git
rm -rf application/third_party/{test-more-php,mockery}