63 lines
1.9 KiB
Bash
63 lines
1.9 KiB
Bash
# Maintainer: LoveSy <shana@zju.edu.cn>
|
|
|
|
pkgbase=libbobcat
|
|
pkgname=('libbobcat' 'libbobcat-devel')
|
|
pkgver=5.05.00
|
|
pkgrel=1
|
|
pkgdesc="Bobcat (Brokken's Own Base Classes And Templates) library"
|
|
arch=('i686' 'x86_64')
|
|
url="https://fbb-git.gitlab.io/bobcat/"
|
|
license=('GPL')
|
|
# Versions taken from the 'required' file in sources
|
|
makedepends=('icmake>=8.01.00' 'yodl>=3.07.01' 'gcc')
|
|
optdepends=()
|
|
# Use my own repo temporarily to avoid untaring soft link.
|
|
source=("${pkgname}::git+https://gitlab.com/fbb-git/bobcat.git#tag=${pkgver}"
|
|
"fix-g_errno.patch"
|
|
"fix-build.patch"
|
|
"fix-light-build.patch")
|
|
sha256sums=('SKIP'
|
|
'fe1bedf6bbe255128aeab37215164022a029f2343bc29229e03e943501f3f73a'
|
|
'5d34da873571c5f864bbee8549427fb569bd692fbd68eb9ce2691d476cf68b15'
|
|
'b2f2773d4486d4b2b3c3f6c20042a7eb3b01e7e2a75d5bd3b28761283b891d9d')
|
|
|
|
prepare() {
|
|
cd "${srcdir}/${pkgbase}"
|
|
patch -p1 -i ${srcdir}/fix-g_errno.patch
|
|
patch -p1 -i ${srcdir}/fix-build.patch
|
|
patch -p1 -i ${srcdir}/fix-light-build.patch
|
|
}
|
|
build() {
|
|
cd "${srcdir}/${pkgbase}/bobcat"
|
|
CXXFLAGS="$CXXFLAGS -std=c++17 -D_GNU_SOURCE"
|
|
# Add the -P option not to use precompiled headers, which can be useful since
|
|
# they require a lot of free space, compared to a normal compilation:
|
|
# ./build -P libraries all
|
|
./build light
|
|
./build man
|
|
./build install x "${srcdir}/dest"
|
|
|
|
mkdir -p ${srcdir}/dest/usr/bin
|
|
mv ${srcdir}/dest/usr/lib/*.dll ${srcdir}/dest/usr/bin/
|
|
}
|
|
|
|
package_libbobcat() {
|
|
depends=('gcc-libs')
|
|
|
|
mkdir -p ${pkgdir}/usr
|
|
cp -rf ${srcdir}/dest/usr/bin ${pkgdir}/usr/
|
|
cp -rf ${srcdir}/dest/usr/share ${pkgdir}/usr/
|
|
}
|
|
|
|
package_libbobcat-devel() {
|
|
pkgdesc="libbobcat headers and libraries"
|
|
options=('staticlibs')
|
|
groups=('development')
|
|
depends=("libbobcat=${pkgver}")
|
|
|
|
mkdir -p ${pkgdir}/usr
|
|
|
|
cp -rf ${srcdir}/dest/usr/include ${pkgdir}/usr/
|
|
cp -rf ${srcdir}/dest/usr/lib ${pkgdir}/usr/
|
|
}
|