mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
added community/sigil
This commit is contained in:
parent
bbbc2576c1
commit
6706fb4261
2 changed files with 59 additions and 0 deletions
47
community/sigil/PKGBUILD
Normal file
47
community/sigil/PKGBUILD
Normal file
|
@ -0,0 +1,47 @@
|
|||
# $Id$
|
||||
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
|
||||
# Contributor: Larry Hajali <larryhaja [at] gmail [dot] com>
|
||||
|
||||
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||
# - depend on xerces-c to avoid x86isms in bundled version
|
||||
|
||||
pkgname=sigil
|
||||
pkgver=0.8.6
|
||||
pkgrel=2
|
||||
pkgdesc="WYSIWYG ebook editor"
|
||||
arch=('i686' 'x86_64')
|
||||
url="https://github.com/user-none/Sigil/"
|
||||
license=('GPL3')
|
||||
depends=('qt5-webkit' 'boost-libs' 'python' 'hicolor-icon-theme' 'xerces-c')
|
||||
makedepends=('qt5-multimedia' 'qt5-tools' 'qt5-svg' 'cmake' 'boost')
|
||||
install=sigil.install
|
||||
source=("https://github.com/user-none/Sigil/releases/download/${pkgver}/Sigil-${pkgver}-Code.zip")
|
||||
md5sums=('c32364fd891f562e259c50615191fc45')
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/Sigil-${pkgver}"
|
||||
|
||||
mkdir build
|
||||
cd build
|
||||
|
||||
cmake -G "Unix Makefiles" \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_C_FLAGS:STRING="${CFLAGS}" \
|
||||
-DCMAKE_CXX_FLAGS:STRING="${CXXFLAGS}" \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_SKIP_RPATH=ON ..
|
||||
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}"/Sigil-${pkgver}/build
|
||||
make install DESTDIR="${pkgdir}"
|
||||
|
||||
for _pic in 16 32 48 128 256; do
|
||||
install -D -m 0644 ../src/Sigil/Resource_Files/icon/app_icon_${_pic}.png \
|
||||
"${pkgdir}"/usr/share/icons/hicolor/${_pic}x${_pic}/apps/${pkgname}.png
|
||||
done
|
||||
install -Dm644 ../src/Sigil/Resource_Files/icon/app_icon_128.png \
|
||||
"$pkgdir/usr/share/pixmaps/$pkgname.png"
|
||||
}
|
12
community/sigil/sigil.install
Normal file
12
community/sigil/sigil.install
Normal file
|
@ -0,0 +1,12 @@
|
|||
post_install() {
|
||||
update-desktop-database -q
|
||||
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install
|
||||
}
|
||||
|
||||
post_remove() {
|
||||
post_install
|
||||
}
|
Loading…
Reference in a new issue