2016-12-14 23:46:27 -05:00
|
|
|
# Maintainer: Michael Straube <straubem@gmx.de>
|
2016-11-05 01:29:34 -04:00
|
|
|
# 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
|
2017-01-20 10:44:07 -05:00
|
|
|
pkgrel=3
|
2016-11-05 01:29:34 -04:00
|
|
|
pkgdesc='A desktop/gui font family for integrated use with the KDE desktop'
|
|
|
|
url='https://projects.kde.org/projects/kde/workspace/oxygen-fonts'
|
|
|
|
arch=('i686' 'x86_64') # CMake files are arch-dependent
|
|
|
|
license=('custom:OFL' 'GPL' 'custom:GPL+FE')
|
|
|
|
depends=('fontconfig' 'xorg-fonts-encodings' 'xorg-font-utils')
|
|
|
|
makedepends=('extra-cmake-modules' 'fontforge')
|
|
|
|
provides=('ttf-font')
|
|
|
|
options=('!emptydirs')
|
2016-12-14 23:46:27 -05:00
|
|
|
source=("http://download.kde.org/stable/plasma/$pkgver/oxygen-fonts-$pkgver.tar.xz")
|
|
|
|
sha256sums=('a02f6580e9a53cb16694a99adbb6dbf76f17584f3e97f469a22286299507838c')
|
2016-11-05 01:29:34 -04:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
mkdir build
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd build
|
2016-12-14 23:46:27 -05:00
|
|
|
|
|
|
|
cmake ../oxygen-fonts-$pkgver \
|
2016-11-05 01:29:34 -04:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DLIB_INSTALL_DIR=lib \
|
|
|
|
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd build
|
2016-12-14 23:46:27 -05:00
|
|
|
|
|
|
|
make DESTDIR="$pkgdir" install
|
2016-11-05 01:29:34 -04:00
|
|
|
|
|
|
|
# Fix install path
|
2016-12-14 23:46:27 -05:00
|
|
|
install -d "$pkgdir"/usr/share/fonts/TTF
|
|
|
|
mv "$pkgdir"/usr/share/fonts/truetype/oxygen/*.ttf \
|
|
|
|
"$pkgdir"/usr/share/fonts/TTF/
|
2016-11-05 01:29:34 -04:00
|
|
|
|
2016-12-14 23:46:27 -05:00
|
|
|
install -d "$pkgdir"/usr/share/licenses/$pkgname
|
|
|
|
install -m644 "$srcdir"/oxygen-fonts-$pkgver/COPYING-{GPL+FE.txt,OFL} \
|
|
|
|
"$pkgdir"/usr/share/licenses/$pkgname
|
2016-11-05 01:29:34 -04:00
|
|
|
}
|