blob: d171927627cadef9e7d80045d9caf6d50362be6a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Contributor: Luca Weiss <luca@z3ntu.xyz>
# Maintainer: Luca Weiss <luca@z3ntu.xyz>
pkgname=kookbook
pkgver=0.2.1
pkgrel=1
pkgdesc="Simple recipe manager taking structured markdown for recipes"
url="https://github.com/KDE/kookbook/blob/master/doc/intro.md"
arch="all !armhf"
license="MIT"
depends="$pkgname-common"
makedepends="extra-cmake-modules qt5-qtbase-dev qt5-qtdeclarative-dev discount-dev"
subpackages="$pkgname-common $pkgname-touch:ktouch"
source="https://download.kde.org/unstable/kookbook/kookbook-$pkgver.tar.xz"
options="!check" # No tests
build() {
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=True \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
-DCMAKE_C_FLAGS="$CFLAGS" \
${CMAKE_CROSSOPTS} .
make
}
package() {
make DESTDIR="$pkgdir" install
}
common() {
pkgdesc="Common files for kookbook and kookbook-touch"
mkdir -p "$subpkgdir"/usr/share
mv "$pkgdir"/usr/share/icons "$subpkgdir"/usr/share/
mv "$pkgdir"/usr/share/kookbook "$subpkgdir"/usr/share/
}
ktouch() {
depends="$pkgname-common"
pkgdesc="Touch friendly recipe manager taking structured markdown for recipes"
mkdir -p "$subpkgdir"/usr/bin "$subpkgdir"/usr/share/applications
mv "$pkgdir"/usr/bin/kookbooktouch "$subpkgdir"/usr/bin/
mv "$pkgdir"/usr/share/applications/kookbooktouch.desktop "$subpkgdir"/usr/share/applications/
}
sha512sums="806ee828584771b4e8fe42aeb1cae7068e887a73cd119bfde23ea9a2583b7fbbb000c4cd13e80f201c1fa8f32fc58195a13e75c1ffd5b7c943183cc6483b1c08 kookbook-0.2.1.tar.xz"
|