1 # $Id: PKGBUILD 59836 2011-11-30 22:56:23Z giovanni $
2 # Maintainer: Giovanni Scafora <giovanni@archlinux.org>
3 # Contributor: Larry Hajali <larryhaja [at] gmail [dot] com>
8 pkgdesc="A WYSIWYG ebook editor"
10 url="http://code.google.com/p/sigil/"
16 source=("sigil.desktop")
17 md5sums=('fef6aa492af487ccccd6b133635cee5a')
19 _gitroot=http://code.google.com/p/sigil/
24 if [ -d ${_gitname} ]; then
25 cd ${_gitname} && git pull origin master
26 msg "The local files are updated."
31 msg "GIT checkout done or server timeout"
32 msg "Starting make..."
36 cmake -G "Unix Makefiles" \
37 -DCMAKE_INSTALL_PREFIX=/usr \
38 -DCMAKE_C_FLAGS:STRING="${CFLAGS}" \
39 -DCMAKE_CXX_FLAGS:STRING="${CXXFLAGS}" \
40 -DCMAKE_BUILD_TYPE=Release \
41 -DCMAKE_SKIP_RPATH=ON ..
47 cd "${srcdir}"/${_gitname}/build
48 make install DESTDIR="${pkgdir}"
50 install -d -m 0755 "${pkgdir}"/usr/share/applications
51 install -m 0644 "${srcdir}"/sigil.desktop "${pkgdir}"/usr/share/applications
53 for _pic in 16 32 48 128 256; do
54 install -D -m 0644 ../src/Sigil/Resource_Files/icon/app_icon_${_pic}.png \
55 "${pkgdir}"/usr/share/icons/hicolor/${_pic}x${_pic}/apps/sigil.png