Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:kimi:fontforge
fontforge-git
PKGBUILD
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File PKGBUILD of Package fontforge-git
# Fix for error: bsdtar: Failed to set default locale # LANG=en_US.UTF-8 # not available, use C or POSIX LANG=C LC_ALL=${LANG} # Get some information about the machine we are building on: _numberOfProcessorsOnMachine=$(nproc) _wantedJobs=$(echo "1.1*${_numberOfProcessorsOnMachine}" | bc -l) _jobsIget=$(echo ${_wantedJobs} | awk '{print int($1+0.5)}') _TOTAL_DISK=$(df -h --total | awk 'END{print $2}') _FREEMEM=$(free --mega) _TOTAL_MEM=$(free --total --mega | xargs | awk '{print $19"MB"}') _TOTAL_RAM=$(free --total --mega | xargs | awk '{print $8"MB"}') _TOTAL_SWAP=$(free --total --mega | xargs | awk '{print $15"MB"}') _executable=fontforge pkgname=${_executable}-git pkgver=20230101.27+git9f2d72e3 pkgrel=1 pkgdesc='Outline and bitmap font editor' url='https://fontforge.github.io/' arch=('x86_64') license=('BSD') makedepends=('cmake' 'ninja' 'git' 'python-sphinx' 'python-distutils-extra') depends=('libtool' 'pango' 'giflib' 'libtiff' 'libxml2' 'libspiro' 'python' 'potrace' 'woff2' 'gtk3' 'libuninameslist') source=("${pkgname}-${pkgver}.tar.xz") sha512sums=('SKIP') _uploaddir=/usr/src/packages/SOURCES _sourcedir=/usr/src/packages/BUILD/${pkgname}/src/${pkgname}-${pkgver} # srcdir is already defined as # ${srcdir}=/usr/src/packages/BUILD/${pkgname}/src _builddir=/usr/src/packages/BUILD/${pkgname}/build _pkgdir=/usr/src/packages/BUILD/${pkgname}/pkg/${pkgname} _install_prefix=/usr prepare() { cd "${srcdir}/${pkgname}-${pkgver}" mkdir build # echo "--- Apply patches ---" # patch -Np1 -i ../patch001.patch # patch -s -p1 --directory="${srcdir}/${pkgname}-${pkgver}" --remove-empty-files --force < $_uploaddir/patch001.patch patch -s -p1 --directory="${srcdir}/${pkgname}-${pkgver}" --remove-empty-files --force < $_uploaddir/0002-remove-custom-library-search-path.patch patch -s -p1 --directory="${srcdir}/${pkgname}-${pkgver}" --remove-empty-files --force < $_uploaddir/0003-use-local-libjs-mathjax.patch patch -s -p1 --directory="${srcdir}/${pkgname}-${pkgver}" --remove-empty-files --force < $_uploaddir/2003_avoid_privacy_breach.patch patch -s -p1 --directory="${srcdir}/${pkgname}-${pkgver}" --remove-empty-files --force < $_uploaddir/2004-fix-privacy-breach-logo.patch # echo "--- End apply patches ---" } build() { cd "${srcdir}/${pkgname}-${pkgver}/build" cmake \ -G"Ninja" \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=${_install_prefix} \ -DENABLE_MAINTAINER_TOOLS=TRUE \ -DENABLE_FONTFORGE_EXTRAS=TRUE \ -DUNIX=TRUE \ .. #make ninja } package() { cd "${srcdir}/${pkgname}-${pkgver}" cd build #DESTDIR="${pkgdir}" ninja -C "${srcdir}/${pkgname}-${pkgver}/build" install DESTDIR="${pkgdir}" ninja install #make DESTDIR="${pkgdir}" install install -Dm644 ../LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor