desktop/vym/PKGBUILD
2015-11-10 12:49:22 +01:00

46 lines
1.3 KiB
Bash

pkgname=vym
pkgver=2.5.0
pkgrel=1
pkgdesc="A mindmapping tool"
arch=('x86_64')
url="http://www.insilmaril.de/vym/"
license=('GPL')
depends=('qt5-base' 'qt5-tools' 'qt5-svg' 'unzip' 'zip')
options=('!emptydirs')
install=$pkgname.install
screenshot="http://a.fsdn.com/con/app/proj/vym/screenshots/328321.jpg"
source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2 \
$pkgname.desktop)
sha256sums=('8412c3ce8de3330fb61e7c2c75dfcde0cc955c0804d5a5f384f726eb32cc23dd'
'e299c69c213e7aac3f5b5d0ab088132b4ec7cb63a391f272e75ed64f049d541b')
build() {
cd ${srcdir}/$pkgname-$pkgver
qmake-qt5 PREFIX=/usr
lrelease-qt5 vym.pro
make
}
package() {
cd "${srcdir}"/$pkgname-$pkgver
# install files
make INSTALL_ROOT="${pkgdir}" install
install -d ${pkgdir}/usr/share/{doc/$pkgname,man/man1,$pkgname}
install -D -m644 "${srcdir}"/$pkgname.desktop \
"${pkgdir}"/usr/share/applications/$pkgname.desktop
install -D -m644 icons/$pkgname-128x128.png \
"${pkgdir}"/usr/share/pixmaps/$pkgname.png
mv $pkgdir/usr/vym $pkgdir/usr/share
# correct doc location
mv doc/* "${pkgdir}"/usr/share/doc/$pkgname
rm -rd "${pkgdir}"/usr/doc/packages/vym/*
mv "${pkgdir}"/usr/share/doc/vym/vym.1.gz "${pkgdir}"/usr/share/man/man1/
}