blob: 42c7d9f15ce647200c33e154ee01d7ae4d6b1deb (
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
|
# Maintainer: Andreas Schulz <andi.schulz@me.com>
pkgname=qtcreator-plugin-layoutsupport-git
pkgver=r13.2598965
pkgrel=1
pkgdesc="Layout support for additional plugins for Qt Creator."
arch=('x86_64')
url="https://github.com/Longhanks/qtcreator-plugin-layoutsupport"
license=('MIT')
depends=('qtcreator')
makedepends=('git' 'qtcreator-src')
source=("$pkgname"::git+https://github.com/Longhanks/qtcreator-plugin-layoutsupport.git)
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/$pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
mkdir -p build
}
build() {
cd build
cmake "$srcdir/$pkgname" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DQTCREATOR_SRC="/usr/src/qtcreator" \
-DQTCREATOR_BIN="/usr/bin/qtcreator"
make
}
package() {
cd build
make DESTDIR="$pkgdir/" install
install -D -m644 "$srcdir"/$pkgname/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
|