2015-12-10 05:06:13 +02:00
|
|
|
# $Id:
|
|
|
|
# Maintainer: Ivailo Monev <xakepa10@gmail.com>
|
|
|
|
|
|
|
|
pkgname=katie-git
|
2016-03-07 16:27:07 +00:00
|
|
|
pkgver=4.9.0.8e624df
|
|
|
|
pkgrel=1
|
2015-12-10 08:56:10 +02:00
|
|
|
pkgdesc='C++ toolkit derived from the Qt 4.8 framework'
|
2015-12-10 05:06:13 +02:00
|
|
|
arch=('i686' 'x86_64')
|
2015-12-10 08:56:10 +02:00
|
|
|
url='https://github.com/fluxer/katie'
|
2015-12-10 05:06:13 +02:00
|
|
|
license=('LGPL' 'FDL' 'custom')
|
2016-01-10 14:56:30 +02:00
|
|
|
# nas is avaiable trough AUR, add it to depends array if desired
|
|
|
|
depends=('openssl' 'zlib' 'cups' 'alsa-lib' 'gtk2' 'libgl' 'libice'
|
2015-12-10 05:06:13 +02:00
|
|
|
'libsm' 'libxcursor' 'libxext' 'libxfixes' 'libxi' 'libxinerama'
|
2015-12-30 10:06:08 +02:00
|
|
|
'libxrandr' 'libxrender' 'libx11' 'fontconfig' 'freetype2' 'glib2')
|
2015-12-14 02:19:05 +02:00
|
|
|
makedepends=('cmake' 'git' 'python' 'postgresql' 'mariadb' 'unixodbc' 'mesa'
|
|
|
|
'vlc' 'unifdef')
|
2015-12-10 05:06:13 +02:00
|
|
|
optdepends=('postgresql-libs: PostgreSQL driver'
|
|
|
|
'libmariadbclient: MariaDB driver'
|
|
|
|
'unixodbc: ODBC driver'
|
|
|
|
'vlc: Phonon VLC backend')
|
2015-12-10 08:56:10 +02:00
|
|
|
source=("git+https://github.com/fluxer/katie")
|
2015-12-10 05:06:13 +02:00
|
|
|
sha1sums=('SKIP')
|
|
|
|
conflicts=('katie')
|
|
|
|
# options=('debug')
|
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd katie
|
2016-03-07 16:27:07 +00:00
|
|
|
printf "4.9.0.%s" "$(git rev-parse --short HEAD)"
|
2015-12-10 05:06:13 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
mkdir -p build
|
2015-12-30 10:06:08 +02:00
|
|
|
|
|
|
|
echo 'set(LDCONF_INSTALL_DIR /etc/ld.so.conf.d)' \
|
|
|
|
>> katie/mkspecs/linux/vendor.cmake
|
2016-02-14 01:48:27 +02:00
|
|
|
echo 'set(PROFILE_INSTALL_DIR /etc/profile.d)' \
|
|
|
|
>> katie/mkspecs/linux/vendor.cmake
|
2015-12-30 10:06:08 +02:00
|
|
|
echo 'set(DBUS_INTERFACES_INSTALL_DIR /etc/dbus-1/interfaces)' \
|
|
|
|
>> katie/mkspecs/linux/vendor.cmake
|
2016-02-29 18:31:07 +02:00
|
|
|
echo 'set(CMAKE_INSTALL_DIR /usr/share/cmake)' \
|
|
|
|
>> katie/mkspecs/linux/vendor.cmake
|
2015-12-10 05:06:13 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd build
|
|
|
|
cmake ../katie \
|
|
|
|
-Wno-dev \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
2015-12-25 04:47:42 +02:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr
|
2015-12-10 05:06:13 +02:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd build
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
|
|
|
|
install -vDm644 ../katie/LGPL_EXCEPTION.txt \
|
|
|
|
"${pkgdir}/usr/share/licenses/katie-git/LGPL_EXCEPTION.txt"
|
2016-03-05 22:41:40 +00:00
|
|
|
|
|
|
|
# register Designer as application
|
2016-03-12 23:39:01 +00:00
|
|
|
install -v -Dm644 ../katie/src/tools/designer/images/designer.png \
|
2016-03-05 22:41:40 +00:00
|
|
|
"${pkgdir}/usr/share/pixmaps/designer-katie.png"
|
|
|
|
mkdir -p "${pkgdir}/usr/share/applications"
|
|
|
|
cat > "${pkgdir}/usr/share/applications/designer-katie.desktop" << EOF
|
|
|
|
[Desktop Entry]
|
|
|
|
Name=Katie Designer
|
|
|
|
Comment=Design GUIs for Katie applications
|
|
|
|
Exec=designer-katie
|
|
|
|
Icon=designer-katie.png
|
|
|
|
MimeType=application/x-designer;
|
|
|
|
Terminal=false
|
|
|
|
Encoding=UTF-8
|
|
|
|
Type=Application
|
|
|
|
Categories=Qt;Development;
|
|
|
|
EOF
|
2015-12-10 05:06:13 +02:00
|
|
|
}
|