summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorM4D2016-03-26 18:54:48 +0100
committerM4D2016-03-26 18:54:48 +0100
commitfaf6ccfb13549af605c011078cb932f73bba385e (patch)
treefaee3d413c49ce847082533a1b40bfe8850ec804 /PKGBUILD
parent06dbc9793078c08ba9f8023cddc0a6fddf604dda (diff)
downloadaur-faf6ccfb13549af605c011078cb932f73bba385e.tar.gz
Update URLs to nuts instance
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD11
1 files changed, 4 insertions, 7 deletions
diff --git a/PKGBUILD b/PKGBUILD
index f586355a1601..7a0059e14cca 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,14 +2,14 @@
pkgname=gitbook-editor
pkgver=5.0.4
-pkgrel=1
+pkgrel=2
pkgdesc="Gitbook Editor - Write and publish books"
arch=('i686' 'x86_64')
url="https://www.gitbook.com/editor/linux"
license=('custom')
-source_x86_64=("gitbook-editor-${pkgver}-linux-x64.deb::https://www.gitbook.com/editor/linux-64-bit/download")
-source_i686=("gitbook-editor-${pkgver}-linux-ia32.deb::https://www.gitbook.com/editor/linux-32-bit/download")
+source_x86_64=("gitbook-editor-${pkgver}-linux-x64.deb::http://downloads.editor.gitbook.com/download/version/${pkgver}/linux-x64")
+source_i686=("gitbook-editor-${pkgver}-linux-ia32.deb::http://downloads.editor.gitbook.com/download/version/${pkgver}/linux-ia32")
sha256sums_x86_64=('fff40d479ad0e9770a7e1796dbb5c8c2aeda996fab576fb698fd6f2af1b7f7bd')
sha256sums_i686=('f2bd5b76ad037faf254be796cdc86e19c5e99a760cd17aa3560b0e0cc9aa6ce1')
@@ -19,13 +19,10 @@ prepare() {
}
package() {
- # Copy files
- cp -r {opt,usr} "${pkgdir}"
+ cp --preserve=mode -r {opt,usr} "${pkgdir}"
- # Permission fix
find "${pkgdir}" -type d -exec chmod 755 {} +
- # Move license
install -dm755 ${pkgdir}/usr/share/licenses/${pkgname}
mv ${pkgdir}/opt/gitbook-editor/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}
}