blob: ebf9ab933a544cc13c1f3891b07eea41ab2e130d (
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
|
# Maintainer: Andrew Sun <adsun701@gmail.com>
# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
pkgname=injeqt
pkgver=1.2.0
pkgrel=2
pkgdesc='Dependency injection framework for Qt'
arch=('i686' 'x86_64')
url='https://github.com/vogel/injeqt'
license=('LGPL-2.0-or-later')
depends=('gcc-libs' 'glibc' 'qt5-base')
makedepends=('cmake')
source=("${pkgname}-${pkgver}.tar.gz"::"${url}/archive/${pkgver}.tar.gz"
"gcc7-fix.patch")
sha256sums=('77540cedb0b26affe993dd18124d796059e34c80a51d9ae6433fdff1860db135'
'c4100ae17234b7d00cb30ea8dd9ab5517eed0f702d0e3e260b3a5b472fe25779')
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
patch -Np1 -i "${srcdir}/gcc7-fix.patch"
}
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
-DDISABLE_EXAMPLES=ON \
-DDISABLE_TESTS=ON
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
}
|