blob: 0f3a2a5d2ad4044acdb3d42968a883d629aa8e48 (
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
|
# Maintainer: Fabio 'Lolix' Loli <fabio.loli@disroot.org> -> https://github.com/FabioLolix
# Contributor: Jerome Leclanche <jerome@leclan.ch>
pkgname=stormlib-git
pkgver=9.26.r14.gcc17c9b
pkgrel=1
pkgdesc="A C/C++ API to read and write MPQ files"
arch=(x86_64 i686)
url="https://github.com/ladislav-zezula/stormlib"
license=(MIT)
#depends=(bzip2 zlib)
makedepends=(git cmake)
provides=(stormlib)
conflicts=(stormlib)
source=("git+https://github.com/ladislav-zezula/stormlib.git")
sha256sums=("SKIP")
pkgver() {
cd "stormlib"
git describe --long --tags --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cmake -B build -S "stormlib" -Wno-dev \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr
cmake --build build
}
package() {
DESTDIR="${pkgdir}" cmake --install build
install -D stormlib/LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
|