blob: 46055a8fe29d71dc7b798b315d4d4d681c780173 (
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
|
# Maintainer: zetaPRIME <qmanxt at gmail dot com>
pkgname=qt5ct-svn-translucent
pkgver=1.2.r582
pkgrel=1
pkgdesc="Qt5 Configuration Tool, patched to globally allow translucent window backgrounds."
arch=('i686' 'x86_64')
url="https://sourceforge.net/projects/qt5ct/"
license=('BSD')
depends=('qt5-svg')
makedepends=('qt5-tools' 'subversion')
conflicts=("${pkgname%%-*}")
provides=("${pkgname%%-*}")
install=${pkgname%%-*}.install
source=('qt5ct::svn://svn.code.sf.net/p/qt5ct/code/trunk/qt5ct' 'translucent.patch')
md5sums=('SKIP' 'SKIP')
pkgver() {
cd "${pkgname%%-*}"
major=$(grep 'define QT5CT_VERSION_MAJOR' src/qt5ct/qt5ct.h | awk '{print $3}')
minor=$(grep 'define QT5CT_VERSION_MINOR' src/qt5ct/qt5ct.h | awk '{print $3}')
local ver="$(svnversion)"
printf "%s.r%s" "$major"."$minor" "${ver//[[:alpha:]]}"
}
prepare() {
cd "${pkgname%%-*}"
patch -Np0 -i "${srcdir}/translucent.patch"
}
build() {
cd "${pkgname%%-*}"
qmake-qt5 PREFIX=/usr qt5ct.pro \
QMAKE_CFLAGS_RELEASE="${CFLAGS}" \
QMAKE_CXXFLAGS_RELEASE="${CXXFLAGS}" \
QMAKE_LFLAGS_RELEASE="${LDFLAGS}"
make
}
package() {
cd "${pkgname%%-*}"
make INSTALL_ROOT="$pkgdir" install
install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
|