desktop/kchmviewer/PKGBUILD

33 lines
917 B
Bash
Raw Normal View History

pkgname=kchmviewer
2015-11-17 07:57:48 +08:00
pkgver=7.5
2012-02-02 04:40:03 +08:00
pkgrel=1
pkgdesc="A .chm files (MS HTML help file format) viewer"
2015-11-11 19:14:42 +08:00
arch=('x86_64')
url="http://kchmviewer.sourceforge.net/"
license=('GPL')
depends=('desktop-file-utils' 'chmlib' 'xdg-utils' 'libzip' 'qt5-webkit')
makedepends=('qt5-tools')
categories=('office')
options=('libtool')
install=${pkgname}.install
2015-11-17 07:57:48 +08:00
source=("$pkgname-$pkgver::http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz")
sha256sums=('c81f8fb7ac1fe8a5284e03b0d91def61cbd5638f2276c5de8046251755352e53')
build() {
cd $pkgname-$pkgver
qmake-qt5 PREFIX=/usr
make
}
package() {
cd $pkgname-$pkgver
# make DISTDIR="${pkgdir}" install
install -Dm755 bin/$pkgname "${pkgdir}"/usr/bin/$pkgname
#icon/desktop file
install -Dm644 packages/$pkgname.png "${pkgdir}"/usr/share/pixmaps/$pkgname.png
install -Dm644 packages/$pkgname.desktop "${pkgdir}"/usr/share/applications/$pkgname.desktop
}