From ba29f141c8b7faa08d9d586118d1f6973e16c552 Mon Sep 17 00:00:00 2001 From: Francesco Marinucci Date: Wed, 5 Dec 2018 16:15:22 +0100 Subject: [PATCH] [skip-ci] sigil: update to 0.9.10, switch to pacman hooks (#73 and #74) --- sigil/PKGBUILD | 17 +++++++++-------- sigil/sigil.install | 12 ------------ 2 files changed, 9 insertions(+), 20 deletions(-) delete mode 100644 sigil/sigil.install diff --git a/sigil/PKGBUILD b/sigil/PKGBUILD index e9bf9278c..6d3c97bc1 100644 --- a/sigil/PKGBUILD +++ b/sigil/PKGBUILD @@ -1,7 +1,7 @@ pkgname=sigil _pkgname=Sigil -pkgver=0.9.8 -pkgrel=2 +pkgver=0.9.10 +pkgrel=1 pkgdesc="A multi-platform WYSIWYG ebook editor. It is designed to edit books in ePub format." arch=('x86_64') url="http://sigil-ebook.com/" @@ -9,11 +9,11 @@ license=('GPL3') depends=('qt5-webkit' 'hicolor-icon-theme' 'python3' 'python3-lxml>=3.5.0' 'python3-six' 'python3-html5lib' 'python3-chardet' 'python3-cssselect' 'python3-cssutils' 'python3-pillow' 'python3-regex') makedepends=('qt5-multimedia' 'qt5-tools' 'qt5-svg' 'cmake') categories=('office') -install=sigil.install -source=("${pkgname}-${pkgver}.zip::https://github.com/user-none/Sigil/releases/download/${pkgver}/${_pkgname}-${pkgver}-Code.zip") -sha256sums=('78f9f200c86da326984543bd86cbb8eab91308a5a4d7f8cfcc88eb9b0779749a') +source=("${pkgname}-${pkgver}.zip::https://github.com/Sigil-Ebook/Sigil/archive/${pkgver}.tar.gz") +sha256sums=('294954c4c2b3f1f9348d4f1bff18edebaba44afae901be3900154778b2f877ed') build() { + cd $_pkgname-$pkgver mkdir -p build cd build @@ -22,17 +22,18 @@ build() { -DCMAKE_C_FLAGS:STRING="$CFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$CXXFLAGS" \ -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_SKIP_RPATH=ON .. \ - -DUSE_SYSTEM_LIBS=OFF + -DCMAKE_SKIP_RPATH=ON \ + -DUSE_SYSTEM_LIBS=OFF .. make } package() { + cd $_pkgname-$pkgver cd build make DESTDIR=$pkgdir install - install -Dm0644 $srcdir/src/Resource_Files/freedesktop/$pkgname.desktop \ + install -Dm0644 $srcdir/$_pkgname-$pkgver/src/Resource_Files/freedesktop/$pkgname.desktop \ $pkgdir/usr/share/applications/$pkgname.desktop for _pic in 16 32 48 128 256; do diff --git a/sigil/sigil.install b/sigil/sigil.install deleted file mode 100644 index 4df4c6484..000000000 --- a/sigil/sigil.install +++ /dev/null @@ -1,12 +0,0 @@ -post_install() { - update-desktop-database -q - xdg-icon-resource forceupdate --theme hicolor -} - -post_upgrade() { - post_install -} - -post_remove() { - post_install -}