OSDN Git Service

remove QGraphicsItem binary compat bits
[kde/Katie.git] / package / archlinux / PKGBUILD
1 # Maintainer: Ivailo Monev <xakepa10@gmail.com>
2
3 # https://wiki.archlinux.org/index.php/Arch_package_guidelines
4
5 pkgname=katie-git
6 pkgver=4.14.0.r8005.14dedd943
7 pkgrel=1
8 pkgdesc='C++ toolkit derived from the Qt 4.8 framework'
9 arch=('i486' 'i686' 'pentium4' 'x86_64' 'arm')
10 url='https://bitbucket.org/smil3y/workspace/projects/KATANA'
11 license=('LGPL' 'BSD')
12 depends=('libsm' 'libxcursor' 'libxinerama' 'libxrandr' 'fontconfig'
13          'icu' 'jansson' 'libcups' 'xdg-utils' 'libdeflate')
14 makedepends=('cmake' 'git' 'unifdef')
15 optdepends=('gnu-free-fonts: last resort font')
16 source=(
17     # "git+https://scm.osdn.net/gitroot/kde/Katie.git"
18     "git+https://bitbucket.org/smil3y/Katie.git"
19     # "git+https://github.com/fluxer/katie.git"
20 )
21 sha1sums=('SKIP')
22 conflicts=('katie')
23 # options=('debug')
24
25 pkgver() {
26     cd Katie
27     printf "4.14.0.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
28 }
29
30 prepare() {
31     mkdir -p build
32 }
33
34 build() {
35     cd build
36     cmake ../Katie \
37         -Wno-dev \
38         -DCMAKE_BUILD_TYPE=Release \
39         -DCMAKE_INSTALL_PREFIX=/usr \
40         -DKATIE_TOOLS_SUFFIX="-katie"
41     make
42 }
43
44 package() {
45     cd build
46     make DESTDIR="${pkgdir}" install
47
48     install -vDm644 ../Katie/LICENSE.BSD \
49         "${pkgdir}/usr/share/licenses/katie-git/BSD.txt"
50