blob: 2abe052634e4661a33bdd9e98ae2961f3390119d (
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
|
# Maintainer: Micro <microgamercz@proton.me> -> https://github.com/MicrogamerCz
pkgname=piqi-git
pkgver=0.3.2.r0.gf9d89d4
pkgrel=1
pkgdesc="Unofficial Qt API for Pixiv (with async support)"
arch=(x86_64)
url="https://github.com/MicrogamerCz/Piqi"
license=(GPL-3.0-or-later)
depends=(qcoro qt6-base qt6-declarative)
provides=('piqi')
makedepends=(extra-cmake-modules git)
source=("git+https://github.com/MicrogamerCz/Piqi")
sha256sums=('SKIP')
pkgver() {
cd Piqi
git describe --tags --long --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cmake -B build -S Piqi \
-DCMAKE_INSTALL_PREFIX=/usr
cmake --build build -j$(nproc)
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
|