diff options
author | FabioLolix | 2022-06-11 19:13:32 +0200 |
---|---|---|
committer | FabioLolix | 2022-06-11 19:13:32 +0200 |
commit | c9e62e1d43f431e968f55e29c27d87cae215ab5e (patch) | |
tree | 056ca859907b149e7b9a34ac1063a1271ea7b953 | |
download | aur-c9e62e1d43f431e968f55e29c27d87cae215ab5e.tar.gz |
upload
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 40 |
2 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..3d413937149c --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = casclib-git + pkgdesc = Open-source implementation of library for reading CASC storages from Blizzard games + pkgver = 2.1.r35.ge078936 + pkgrel = 1 + url = http://www.zezula.net/en/casc/casclib.html + arch = x86_64 + license = MIT + makedepends = git + makedepends = cmake + depends = gcc-libs + depends = zlib + provides = casclib + conflicts = casclib + source = git+https://github.com/ladislav-zezula/CascLib.git + sha256sums = SKIP + +pkgname = casclib-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..4b2b3f8b063e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: Fabio 'Lolix' Loli <fabio.loli@disroot.org> -> https://github.com/FabioLolix + +pkgname=casclib-git +pkgver=2.1.r35.ge078936 +pkgrel=1 +pkgdesc="Open-source implementation of library for reading CASC storages from Blizzard games" +arch=(x86_64) +url="http://www.zezula.net/en/casc/casclib.html" +license=(MIT) +depends=(gcc-libs zlib) +makedepends=(git cmake) +provides=(casclib) +conflicts=(casclib) +source=("git+https://github.com/ladislav-zezula/CascLib.git") +sha256sums=('SKIP') + +pkgver() { + cd "CascLib" + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +prepare() { + cd "CascLib" + [[ -d build ]] || mkdir build +} + +build() { + cd "CascLib/build" + cmake .. \ + -DCMAKE_BUILD_TYPE=None \ + -DCASC_BUILD_STATIC_LIB=OFF \ + -DCMAKE_INSTALL_PREFIX=/usr + make +} + +package() { + cd "CascLib/build" + make DESTDIR="${pkgdir}" install + install -D ../LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" +} |