summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO8
-rw-r--r--PKGBUILD11
2 files changed, 8 insertions, 11 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 2eeb6cc38f54..6b213d1c4ca3 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,16 +1,16 @@
# Generated by mksrcinfo v8
-# Sun Mar 13 08:31:50 UTC 2016
+# Sat Mar 26 17:54:00 UTC 2016
pkgbase = gitbook-editor
pkgdesc = Gitbook Editor - Write and publish books
pkgver = 5.0.4
- pkgrel = 1
+ pkgrel = 2
url = https://www.gitbook.com/editor/linux
arch = i686
arch = x86_64
license = custom
- source_i686 = gitbook-editor-5.0.4-linux-ia32.deb::https://www.gitbook.com/editor/linux-32-bit/download
+ source_i686 = gitbook-editor-5.0.4-linux-ia32.deb::http://downloads.editor.gitbook.com/download/version/5.0.4/linux-ia32
sha256sums_i686 = f2bd5b76ad037faf254be796cdc86e19c5e99a760cd17aa3560b0e0cc9aa6ce1
- source_x86_64 = gitbook-editor-5.0.4-linux-x64.deb::https://www.gitbook.com/editor/linux-64-bit/download
+ source_x86_64 = gitbook-editor-5.0.4-linux-x64.deb::http://downloads.editor.gitbook.com/download/version/5.0.4/linux-x64
sha256sums_x86_64 = fff40d479ad0e9770a7e1796dbb5c8c2aeda996fab576fb698fd6f2af1b7f7bd
pkgname = gitbook-editor
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}
}