blob: 2507ea0e209d49fe1063b37ccb3283a20080ca84 (
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
45
46
47
48
49
50
51
52
|
# Maintainer: taotieren <admin@taotieren.com>
pkgname=qt6-qtcsv
pkgver=1.7
pkgrel=0
pkgdesc="Library for reading and writing csv-files in Qt."
arch=(aarch64
riscv64
x86_64)
url="https://github.com/iamantony/qtcsv"
license=('MIT')
groups=()
depends=(
gcc-libs
glibc
qt6-base)
makedepends=(cmake
ninja)
provides=("qtcsv")
conflicts=("qt5-qtcsv" "qtcsv")
replaces=()
backup=()
options=()
install=
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
noextract=()
sha256sums=('7f8acb68fc1888573e263d020f4153494cdf2bd3610ada3605baa88bb8b6ccf5')
build() {
cd "$srcdir/${pkgname#qt6-}-${pkgver}"
# see:https://wiki.archlinux.org/title/
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_INSTALL_LIBEXECDIR=lib \
-B build \
-G Ninja
ninja -C build
}
test() {
cd "$srcdir/${pkgname#qt6-}-${pkgver}/build/tests"
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/../
chmod 777 qtcsv_tests
./qtcsv_tests
}
package() {
DESTDIR="${pkgdir}" ninja -C "${srcdir}"/${pkgname#qt6-}-${pkgver}/build install
}
|