mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
48 lines
1.6 KiB
Bash
48 lines
1.6 KiB
Bash
pkgname=sigil
|
|
_pkgname=Sigil
|
|
pkgver=0.8.6
|
|
pkgrel=2
|
|
pkgdesc="A multi-platform WYSIWYG ebook editor. It is designed to edit books in ePub format."
|
|
arch=('x86_64')
|
|
url="http://sigil-ebook.com/"
|
|
license=('GPL3')
|
|
depends=('qt5-webkit' 'boost-libs' 'hicolor-icon-theme')
|
|
makedepends=('qt5-tools' 'qt5-svg' 'cmake' 'boost' 'qt5-multimedia')
|
|
categories=('office')
|
|
install=sigil.install
|
|
screenshot=('http://1.bp.blogspot.com/-K2Q-tdVbPRI/UI08v7LhzHI/AAAAAAAAABY/vZ5LHjM6nb4/s1600/Screen+Shot+2012-10-28+at+10.07.03+AM.png')
|
|
source=("https://github.com/user-none/Sigil/releases/download/${pkgver}/${_pkgname}-${pkgver}-Code.zip")
|
|
sha512sums=('f511756834002a3b1ea39b380434b766dd3931e5c6b67ab4282981a8d9ec367859cb4feb071b689f13ce75cb66d7f1ced74e47085294eebb0d13785a9ce9995a')
|
|
|
|
|
|
build() {
|
|
cd "${srcdir}/Sigil-${pkgver}"
|
|
|
|
mkdir -p 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 DESTDIR=$pkgdir install
|
|
|
|
install -Dm0644 $srcdir/${_pkgname}-${pkgver}/src/$_pkgname/Resource_Files/freedesktop/$pkgname.desktop \
|
|
$pkgdir/usr/share/applications/$pkgname.desktop
|
|
|
|
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/${_pic}x${_pic}/apps/$pkgname.png
|
|
done
|
|
install -Dm644 ../src/Sigil/Resource_Files/icon/app_icon_512.png \
|
|
"$pkgdir/usr/share/pixmaps/$pkgname.png"
|
|
}
|