summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Hanna2015-12-31 00:58:13 +0100
committerSimon Hanna2015-12-31 00:58:13 +0100
commit057a029df1c32f16c1e277c96595a292d9f6c4db (patch)
tree090504b30f48eb943c071873eb189956cb79ed8a
parent53db4b38b62ebbd7c85d49408405de8a89d85616 (diff)
downloadaur-057a029df1c32f16c1e277c96595a292d9f6c4db.tar.gz
upgpkg: filebin 0.9.8-1
upstream release
-rw-r--r--.SRCINFO7
-rw-r--r--PKGBUILD11
-rw-r--r--filebin.install4
3 files changed, 15 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 6bc09ee0037..291751be640 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,11 +1,12 @@
pkgbase = filebin
pkgdesc = A pastebin service written in PHP
- pkgver = 0.9.2
+ pkgver = 0.9.8
pkgrel = 1
url = https://wiki.server-speed.net/projects/filebin
install = filebin.install
arch = any
license = AGPL
+ makedepends = nodejs
depends = php
depends = pygmentize
depends = perl-text-markdown
@@ -19,9 +20,9 @@ pkgbase = filebin
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.2.tar.gz
+ source = https://github.com/Bluewind/filebin/archive/0.9.8.tar.gz
source = filebin-nginx.conf
- sha256sums = bbb0f339922145e166951a737378b68a4fb2fc3ccf2ba2ed5c14421936f6dc31
+ sha256sums = df60f6dd49d5d01a82bff037bde80e9db681482eb851c06a735bf0637ddf6044
sha256sums = 5500d423d798478bf4f7bb0a147fe8a42b00e843513dd70665ec81f304a6c729
pkgname = filebin
diff --git a/PKGBUILD b/PKGBUILD
index d6493fdf26d..ef7791d2950 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,12 +1,12 @@
# Maintainer: Simon Hanna<simon DOT Hanna AT serve-me DOT info>
pkgname=filebin
-pkgver=0.9.2
+pkgver=0.9.8
pkgrel=1
pkgdesc="A pastebin service written in PHP"
arch=('any')
url="https://wiki.server-speed.net/projects/filebin"
license=('AGPL')
-
+makedepends=('nodejs')
depends=('php'
'pygmentize'
'perl-text-markdown'
@@ -25,13 +25,13 @@ options=('!strip' 'emptydirs')
source=("https://github.com/Bluewind/filebin/archive/${pkgver}.tar.gz"
'filebin-nginx.conf'
)
-sha256sums=('bbb0f339922145e166951a737378b68a4fb2fc3ccf2ba2ed5c14421936f6dc31'
+sha256sums=('df60f6dd49d5d01a82bff037bde80e9db681482eb851c06a735bf0637ddf6044'
'5500d423d798478bf4f7bb0a147fe8a42b00e843513dd70665ec81f304a6c729')
package() {
mkdir -p ${pkgdir}/usr/share/webapps
mkdir -p ${pkgdir}/etc/webapps/filebin
- cp -ra ${srcdir}/filebin/ ${pkgdir}/usr/share/webapps/filebin/
+ cp -ra ${srcdir}/filebin-$pkgver/ ${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,6 +39,9 @@ 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}
diff --git a/filebin.install b/filebin.install
index 40640042d40..756a352de5f 100644
--- a/filebin.install
+++ b/filebin.install
@@ -14,3 +14,7 @@ post_install() {
echo "-------------------------------------------------------------------------------"
}
+
+post_upgrade() {
+ php /usr/share/webapps/filebin/index.php tools update_database
+}