blob: 67bf0a67b5f9652f3b3dda31d79fc8fc0ccbc5aa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Maintainer: David Phillips <david@sighup.nz>
# Contributor: Michael Straube <straubem@gmx.de>
# Contributor: Felix Yan <felixonmars@archlinux.org>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Antonio Rojas <arojas@archlinux.org>
pkgname=ttf-oxygen
epoch=1
pkgver=5.4.3
pkgrel=5
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.bz2")
sha256sums=('d44d1d3b7aa3390fe2052ea6c7c5028fe00548835801b8dc659b51e6e2484d47')
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"
}
|