[arch-commits] Commit in (4 files)

Konstantin Gizdov kgizdov at gemini.archlinux.org
Sun Sep 4 21:41:19 UTC 2022


    Date: Sunday, September 4, 2022 @ 21:41:19
  Author: kgizdov
Revision: 1292924

initial release

Added:
  libbobcat/
  libbobcat/repos/
  libbobcat/trunk/
  libbobcat/trunk/PKGBUILD

----------+
 PKGBUILD |   39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

Added: libbobcat/trunk/PKGBUILD
===================================================================
--- libbobcat/trunk/PKGBUILD	                        (rev 0)
+++ libbobcat/trunk/PKGBUILD	2022-09-04 21:41:19 UTC (rev 1292924)
@@ -0,0 +1,39 @@
+# Maintainer: Konstantin Gizdov <arch at kge dot pw>
+# Contributor: Kevin Brodsky <corax26 at gmail dot com>
+# Contributor: Anton Jongsma <anton at felrood.nl>
+
+_pkgname=bobcat
+pkgname="lib${_pkgname}"
+pkgver=5.11.00
+pkgrel=1
+pkgdesc="Bobcat (Brokken's Own Base Classes And Templates) library"
+arch=('x86_64')
+url="https://fbb-git.gitlab.io/bobcat/"
+license=('GPL')
+depends=('openssl' 'libx11')
+makedepends=('icmake>=9.03.01' 'readline' 'libmilter' 'yodl')
+source=("https://gitlab.com/fbb-git/${_pkgname}/-/archive/${pkgver}/${_pkgname}-${pkgver}.tar.gz")
+b2sums=('3e862cd1da60440608c02ffb17923d29c53893dadb25dcabee0172338bdc3a95c54106c11fcec50179e15b1116cfe48ea4f42ea2f9a4e7c8220d738548e772fb')
+
+build() {
+  cd "${srcdir}/${_pkgname}-${pkgver}/${_pkgname}"
+
+  # Since makepkg always defines CXXFLAGS, it overrides the default value
+  # defined in the build system, which is problematic because it needs a
+  # specific C++ version. Add it back here.
+  export CXXFLAGS="${CXXFLAGS} -std=c++20"
+
+  ./build libraries all
+  ./build man
+}
+
+package() {
+  cd "${srcdir}/${_pkgname}-${pkgver}/${_pkgname}"
+
+  # Since 4.01.02, first argument to install is <what to install> (x = all),
+  # and second is the base directory (absolute path, unlike 4.01.00)
+  ./build install x "${pkgdir}"
+
+  # fix paths
+  ln -s /usr/share/doc/libbobcat5-dev "${pkgdir}/usr/share/doc/${pkgname}"
+}



More information about the arch-commits mailing list