From 3e1e0da5cc4b1f848b968afeda4b539dc92e58b1 Mon Sep 17 00:00:00 2001 From: Philipp Schmitt Date: Wed, 19 Feb 2014 16:33:35 +0100 Subject: [PATCH] Update to 1.5.1.1, add new post_upgrade instructions and make available for any arch --- .SRCINFO | 9 +++++---- PKGBUILD | 7 ++++--- wallabag.install | 7 +++++++ 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index d3daebf..54ee9ce 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,10 +1,10 @@ pkgbase = wallabag pkgdesc = Self hostable application for saving web pages - pkgver = 1.5.0 + pkgver = 1.5.1.1 pkgrel = 1 url = http://www.wallabag.org/ install = wallabag.install - arch = x86_64 + arch = any license = WTFPL depends = php>=5.3 depends = php-tidy @@ -12,9 +12,10 @@ pkgbase = wallabag depends = mariadb optdepends = php-sqlite: For sqlite storage optdepends = php-pgsql: For postgres storage - source = https://github.com/wallabag/wallabag/archive/1.5.0.tar.gz + options = !strip + source = https://github.com/wallabag/wallabag/archive/1.5.1.1.tar.gz source = vendor.zip::http://wllbg.org/vendor - sha256sums = d76dd80920e7474d1b017540d6639908752e4ab35a82d0dee8e149ba33b708a4 + sha256sums = d0d63e5efe56ea28c4ebda2a0ea84162d75c9f7899fccb45aa3fb3e7afc12f5f sha256sums = bd3e843290de28f1c20fa19ed746ca221c9174cb7f0a9723618f21bddb883e12 pkgname = wallabag diff --git a/PKGBUILD b/PKGBUILD index 9ea0493..7742c25 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,18 +1,19 @@ # Maintainer: Philipp Schmitt (philippschmittco) pkgname=wallabag -pkgver=1.5.0 +pkgver=1.5.1.1 pkgrel=1 pkgdesc='Self hostable application for saving web pages' -arch=('x86_64') +arch=('any') url='http://www.wallabag.org/' license=('WTFPL') depends=('php>=5.3' 'php-tidy' 'pcre' 'mariadb') optdepends=('php-sqlite: For sqlite storage' 'php-pgsql: For postgres storage') install="$pkgname.install" +options=(!strip) source=("https://github.com/wallabag/wallabag/archive/${pkgver}.tar.gz" "vendor.zip::http://wllbg.org/vendor") -sha256sums=('d76dd80920e7474d1b017540d6639908752e4ab35a82d0dee8e149ba33b708a4' +sha256sums=('d0d63e5efe56ea28c4ebda2a0ea84162d75c9f7899fccb45aa3fb3e7afc12f5f' 'bd3e843290de28f1c20fa19ed746ca221c9174cb7f0a9723618f21bddb883e12') prepare() { diff --git a/wallabag.install b/wallabag.install index a695ae0..6ef80b5 100644 --- a/wallabag.install +++ b/wallabag.install @@ -17,3 +17,10 @@ post_install() { More info: http://doc.wallabag.org/doku.php?id=users:begin:install' } +post_upgrade() { + echo 'After each upgrade you have to manually: + - Remove the installation folder (/usr/share/webapps/wallabag/install) + - Empty the cache folder (/usr/share/webapps/wallabag/cache) + + $ sudo -u http rm -rf /usr/share/webapps/wallabag/{install,cache/*}' +}