diff --git a/PKGBUILD b/PKGBUILD index e09bc38..487c551 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,7 +1,8 @@ # Maintainer: Philipp Schmitt (philippschmittco) pkgname=wallabag -pkgver=1.9.1-b +pkgver=1.9.1b +_pkgver="$(sed -r 's/([a-zA-Z])/-\1/' <<< $pkgver)" pkgrel=1 pkgdesc='Self hostable application for saving web pages' arch=('any') @@ -11,15 +12,14 @@ depends=('php>=5.3.3' 'php-tidy' 'pcre' 'php-gd') optdepends=('mariadb: For MySQL storage' '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") +source=("https://github.com/wallabag/wallabag/archive/${_pkgver}.tar.gz" "vendor.zip::http://wllbg.org/vendor") sha256sums=('964d2cfb0a4f664285ddbaa08b873d55066b9937762d4b892a03e3619ad3ec09' 'bd3e843290de28f1c20fa19ed746ca221c9174cb7f0a9723618f21bddb883e12') package() { cd "${pkgdir}" mkdir -p usr/share/webapps - mv "${srcdir}/${pkgname}-${pkgver}" usr/share/webapps/${pkgname} + mv "${srcdir}/${pkgname}-${_pkgver}" usr/share/webapps/${pkgname} mv "${srcdir}/vendor" usr/share/webapps/${pkgname}/vendor chown -R http:http "${pkgdir}/usr/share/webapps/wallabag" }