Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libbobcat: add makedepends on git #4055

Merged
merged 1 commit into from
Sep 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions libbobcat/0001-missing-header.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
diff -urN libbobcat/bobcat/datetime/datetime.orig libbobcat/bobcat/datetime/datetime
--- libbobcat/bobcat/datetime/datetime.orig 2023-09-15 19:46:37.003566700 +0200
+++ libbobcat/bobcat/datetime/datetime 2023-09-15 20:19:17.193432700 +0200
@@ -8,6 +8,7 @@
#include <chrono>
#include <mutex>
#include <memory>
+#include <string>

namespace FBB
{
27 changes: 20 additions & 7 deletions libbobcat/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,42 @@
pkgbase=libbobcat
pkgname=('libbobcat' 'libbobcat-devel')
pkgver=5.05.00
pkgrel=2
pkgrel=3
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')
makedepends=('icmake>=8.01.00' 'yodl>=3.07.01' 'gcc' 'git')
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")
"fix-light-build.patch"
"0001-missing-header.patch")
sha256sums=('SKIP'
'fe1bedf6bbe255128aeab37215164022a029f2343bc29229e03e943501f3f73a'
'5d34da873571c5f864bbee8549427fb569bd692fbd68eb9ce2691d476cf68b15'
'b2f2773d4486d4b2b3c3f6c20042a7eb3b01e7e2a75d5bd3b28761283b891d9d')
'b2f2773d4486d4b2b3c3f6c20042a7eb3b01e7e2a75d5bd3b28761283b891d9d'
'5b043a14f152707df698a1aa4d5a4752613000f962f8002242f8620fba7aadb4')

apply_patch_with_msg() {
for _patch in "$@"
do
msg2 "Applying $_patch"
patch -Np1 -i "${srcdir}/$_patch"
done
}

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

apply_patch_with_msg \
fix-g_errno.patch \
fix-build.patch \
fix-light-build.patch \
0001-missing-header.patch
}
build() {
cd "${srcdir}/${pkgbase}/bobcat"
Expand Down