core/oxygen-fonts/PKGBUILD
2018-06-15 00:44:08 +02:00

56 lines
2.0 KiB
Bash

#Contributions from Arch: https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/ttf-oxygen
pkgname=oxygen-fonts
pkgver=5.13.0
pkgrel=1
pkgdesc='The Oxygen font family. A desktop/gui font family for integrated use with the KDE desktop'
url='https://projects.kde.org/projects/kde/workspace/oxygen-fonts'
arch=('x86_64')
replaces=('ttf-oxygen')
conflicts=('ttf-oxygen')
provides=('ttf-oxygen' 'ttf-font')
license=('custom:OFL' 'GPL' 'custom:GPL+FE')
depends=('fontconfig' 'xorg-fonts-encodings' 'xorg-font-utils')
makedepends=('extra-cmake-modules' 'qt5-base' 'fontforge')
options=('!emptydirs')
install=${pkgname}.install
source=("https://download.kde.org/stable/plasma/$pkgver/$_pkgname-$pkgver.tar.xz"{,.sig})
sha256sums=('95dd1da6458f0777f494d18647e07776c77477a6887316738868a54f5f024b69'
'SKIP' )
validpgpkeys=('2D1D5B0588357787DE9EE225EC94D18F7F05997E' # Jonathan Riddell
'0AAC775BB6437A8D9AF7A3ACFE0784117FBCE11D' # Bhushan Shah <bshah@kde.org>
'D07BD8662C56CB291B316EB2F5675605C74E02CF' # David Edmundson
'1FA881591C26B276D7A5518EEAAF29B42A678C20') # Marco Martin <notmart@gmail.com>
prepare() {
mkdir -p build
}
build() {
cd build
cmake ../${pkgname}-${pkgver} \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=/usr \
-DKDE_INSTALL_LIBDIR=lib \
-DKDE_INSTALL_SYSCONFDIR=/etc \
-DKDE_INSTALL_LIBEXECDIR=lib \
-DUDEV_RULES_INSTALL_DIR=/usr/lib/udev/rules.d \
-DBUILD_TESTING=OFF \
-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 "${srcdir}"/oxygen-fonts-${pkgver}/COPYING-{GPL+FE.txt,OFL} \
"${pkgdir}"/usr/share/licenses/${pkgname}
}