blob: 3effca4dcc39492995e30226dfe6c510ab75f94c (
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
|
# Maintainer: Martin Rys <https://rys.rs/contact> | Toss a coin on https://rys.rs/donate
# TODO: Build and ship the docs
pkgname=libloot
_pkgname=loot
# https://github.com/loot/libloot/releases
pkgver=0.25.3
pkgrel=2
pkgdesc="A library for the Load Order Optimisation Tool for Starfield, The Elder Scrolls (Morrowind and later) and Fallout (3 and later) games."
arch=('x86_64')
url="https://loot.github.io"
license=('GPL-3.0-only')
depends=('tbb' 'icu' 'fmt' 'spdlog')
makedepends=('git' 'boost' 'cbindgen' 'cmake' 'rust' 'doxygen' 'python-breathe' 'python-sphinx')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/${_pkgname}/${pkgname}/archive/${pkgver}.tar.gz")
sha256sums=('97426381126e8551cc2e850596a093cc2919e0109e9757315286341214de3020')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
mkdir -p build
cd build
# https://github.com/loot/libloot?tab=readme-ov-file#cmake-variables
cmake .. -DCMAKE_SKIP_RPATH=TRUE # -DLIBLOOT_INSTALL_DOCS=OFF
make loot
}
package() {
_builddir="${srcdir}/${pkgname}-${pkgver}/build"
# install -Dm755 -t "${pkgdir}/usr/lib" "${_builddir}/libloot.s"*
install -Dm755 -t "${pkgdir}/usr/lib" "${_builddir}/libloot.so.${pkgver}"
ln -s "libloot.so.${pkgver}" "${pkgdir}/usr/lib/libloot.so.0"
ln -s "libloot.so.${pkgver}" "${pkgdir}/usr/lib/libloot.so"
install -d "${pkgdir}/usr/include"
cp -r "${_builddir}/../include"/* "${pkgdir}/usr/include"
install -d "${pkgdir}/usr/lib/cmake/${pkgname}"
cp "${_builddir}/liblootConfig.cmake" "${pkgdir}/usr/lib/cmake/${pkgname}/"
cp "${_builddir}/liblootConfigVersion.cmake" "${pkgdir}/usr/lib/cmake/${pkgname}/"
cp "${_builddir}/CMakeFiles/Export/"*"/"*".cmake" "${pkgdir}/usr/lib/cmake/${pkgname}/" # two liblootTarget*.cmake files
# find . "${pkgdir}"
}
|