desktop/sigil/PKGBUILD

50 lines
1.5 KiB
Bash
Raw Normal View History

2012-12-28 03:47:24 +08:00
# maintainer abveritas@chakra-project.org
2014-06-09 23:43:52 +08:00
# contributor Giuseppe Calà <jiveaxe@gmail.com>
2011-01-09 22:14:51 +08:00
pkgname=sigil
_pkgname=Sigil
2013-10-29 02:26:41 +08:00
pkgver=0.7.4
2014-06-09 23:43:52 +08:00
pkgrel=2
2011-01-09 22:14:51 +08:00
pkgdesc="A multi-platform WYSIWYG ebook editor. It is designed to edit books in ePub format. "
2012-12-28 03:47:24 +08:00
arch=('x86_64')
2011-01-09 22:14:51 +08:00
url="http://code.google.com/p/sigil/"
license=('GPL3')
2013-09-08 17:53:58 +08:00
depends=('qt5-base' 'qt5-webkit' 'boost-libs')
makedepends=('cmake' 'gendesk' 'boost' 'qt5-tools' 'qt5-svg')
categories=('office')
2011-01-09 22:14:51 +08:00
install=sigil.install
2012-11-01 02:29:55 +08:00
screenshot=('http://1.bp.blogspot.com/-K2Q-tdVbPRI/UI08v7LhzHI/AAAAAAAAABY/vZ5LHjM6nb4/s1600/Screen+Shot+2012-10-28+at+10.07.03+AM.png')
2012-12-28 03:47:24 +08:00
source=("http://$pkgname.googlecode.com/files/$_pkgname-$pkgver-Code.zip")
2013-10-29 02:26:41 +08:00
sha1sums=('12f1557511b197374e07f4f6a9ed07ae6d23dd67')
2012-11-01 02:29:55 +08:00
2011-01-09 22:14:51 +08:00
build() {
2012-11-01 02:29:55 +08:00
gendesk -n
2013-09-08 17:53:58 +08:00
mkdir -p build
cd build
2011-08-27 04:11:01 +08:00
cmake -G "Unix Makefiles" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_C_FLAGS:STRING="$CFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$CXXFLAGS" \
2011-08-27 04:11:01 +08:00
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_SKIP_RPATH=ON ..
make
2011-08-27 04:11:01 +08:00
}
2011-01-09 22:14:51 +08:00
2011-08-27 04:11:01 +08:00
package() {
cd build
make install DESTDIR=$pkgdir
2012-11-01 02:29:55 +08:00
install -d -m 0755 "${pkgdir}"/usr/share/applications
2011-01-09 22:14:51 +08:00
# Desktop integration.
install -Dm0644 $srcdir/$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
2011-01-09 22:14:51 +08:00
for _pic in 16 32 48 128 256; do
install -Dm0644 ../src/Sigil/Resource_Files/icon/app_icon_$_pic.png \
$pkgdir/usr/share/icons/hicolor/$_picx$_pic/apps/$pkgname.png
2011-01-09 22:14:51 +08:00
done
2012-11-01 02:29:55 +08:00
install -Dm644 ../src/Sigil/Resource_Files/icon/app_icon_128.png \
"$pkgdir/usr/share/pixmaps/$pkgname.png"
2011-01-09 22:14:51 +08:00
}