desktop/kronometer/PKGBUILD

32 lines
825 B
Bash
Raw Normal View History

2015-12-10 22:23:40 +08:00
pkgname=kronometer
2016-08-20 23:19:17 +08:00
pkgver=2.1.1
2016-04-09 17:44:01 +08:00
pkgrel=1
2015-12-10 22:23:40 +08:00
pkgdesc="A simple chronometer application built for KDE."
arch=('x86_64')
url="http://aelog.org/kronometer"
screenshot="http://i1.wp.com/www.aelog.org/wp-content/uploads/2014/06/kronometer.png"
license=('GPL2')
depends=('qt5-tools' 'kconfig' 'kdoctools' 'ki18n' 'kwidgetsaddons' 'kxmlgui')
conflicts=('kronometer-git')
2016-04-25 21:15:47 +08:00
makedepends=('cmake>=3.1' 'make' 'extra-cmake-modules')
2015-12-10 22:23:40 +08:00
source=(http://download.kde.org/stable/$pkgname/$pkgver/src/$pkgname-$pkgver.tar.xz)
2016-08-20 23:19:17 +08:00
sha256sums=('ecb182e6ef6cf33a7c3a068edb6ac243caa43ff386f1c331bb3a2d197eae4b00')
2015-12-10 22:23:40 +08:00
2016-01-07 08:07:58 +08:00
prepare() {
mkdir -p build
}
2015-12-10 22:23:40 +08:00
build() {
2016-01-07 08:07:58 +08:00
cd build
cmake ../$pkgname-$pkgver \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_TESTING=OFF
make
2015-12-10 22:23:40 +08:00
}
2016-01-07 08:07:58 +08:00
2015-12-10 22:23:40 +08:00
package() {
2016-01-07 08:07:58 +08:00
cd build
2015-12-10 22:23:40 +08:00
make DESTDIR="$pkgdir" install
2016-04-09 17:44:01 +08:00
}