From 155b11bdab7cafe4b5adde4a34a361f806964495 Mon Sep 17 00:00:00 2001 From: Martchus Date: Tue, 7 Jul 2020 18:10:20 +0200 Subject: [PATCH] Import ttf-oxygen from the AUR and update source URL --- ttf-oxygen/default/PKGBUILD | 50 +++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 ttf-oxygen/default/PKGBUILD diff --git a/ttf-oxygen/default/PKGBUILD b/ttf-oxygen/default/PKGBUILD new file mode 100644 index 00000000..f062cd61 --- /dev/null +++ b/ttf-oxygen/default/PKGBUILD @@ -0,0 +1,50 @@ +# Maintainer: David Phillips +# Contributor: Michael Straube +# Contributor: Felix Yan +# Contributor: Andrea Scarpino +# Contributor: Antonio Rojas +# Contributor: Martchus + +pkgname=ttf-oxygen +epoch=1 +pkgver=5.4.3 +pkgrel=4 +pkgdesc='A desktop/gui font family for integrated use with the KDE desktop' +url='https://projects.kde.org/projects/kde/workspace/oxygen-fonts' +arch=('any') +license=('custom:OFL' 'GPL' 'custom:GPL+FE') +makedepends=('extra-cmake-modules' 'fontforge' 'qt5-base') +provides=('ttf-font') +options=('!emptydirs') +source=("https://invent.kde.org/unmaintained/oxygen-fonts/-/archive/v${pkgver}/oxygen-fonts-v${pkgver}.tar.gz") +sha256sums=('42dcc154a8ec9ef0043db39bb8370bfefe15d0a65f3b0f4da53ec6fd40f1acbd') + +prepare() { + mkdir -p build +} + +build() { + cd build + + cmake ../oxygen-fonts-v$pkgver \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DKDE_INSTALL_USE_QT_SYS_PATHS=ON + make +} + +package() { + cd build + + make DESTDIR="$pkgdir" install + + # Fix install path + install -d "$pkgdir"/usr/share/fonts/TTF + mv "$pkgdir"/usr/share/fonts/truetype/oxygen/*.ttf \ + "$pkgdir"/usr/share/fonts/TTF/ + + install -d "$pkgdir"/usr/share/licenses/$pkgname + install -m644 ../oxygen-fonts-v$pkgver/COPYING-{GPL+FE.txt,OFL} \ + "$pkgdir"/usr/share/licenses/$pkgname +}