archrelease: copy trunk to community-x86_64
[ArchLinux/community.git] / ukui-interface / repos / community-x86_64 / PKGBUILD
blob06dd3ad763987f8c581d7032872f3aa0e40c23a9
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=ukui-interface
4 pkgver=1.0.1
5 pkgrel=2
6 pkgdesc="UKUI interface for system configuration and related libraries"
7 arch=('x86_64')
8 license=('GPL')
9 url="https://github.com/ukui/ukui-interface"
10 groups=('ukui')
11 depends=('dconf' 'gsettings-qt' 'iniparser')
12 source=("https://github.com/ukui/ukui-interface/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
13 sha512sums=('b02579c3f02f30a4ab33f5d48d8f77fc0c7353f28b8963de489537b397199bdbab7abcb03c720ec6f60b298e1ff53856d1f6e691c8ef7ec2f5a80da6479cb88e')
15 prepare() {
16   cd $pkgname-$pkgver
17   # https://github.com/ukui/ukui-interface/issues/7
18   sed -i 's|iniparser/iniparser.h|iniparser.h|' src/common/kylin-com4cxx.cpp src/common/kylin-com4c.c
20   NOCONFIGURE=1 ./autogen.sh
23 build() {
24   cd $pkgname-$pkgver
25   ./configure --prefix=/usr --libexecdir=/usr/lib/$pkgname --sysconfdir=/etc
26   make
28   cd src/log4qt
29   qmake-qt5 PREFIX=/usr
30   make
33 package() {
34   cd $pkgname-$pkgver
35   make DESTDIR="$pkgdir" install
37   cd src/log4qt
38   make INSTALL_ROOT="$pkgdir" install