diff options
author | Erich Eckner <git@eckner.net> | 2017-09-20 13:54:08 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-09-20 13:54:08 +0200 |
commit | 88c2c6c63748ea1b30a58b938c3924b887b34ae9 (patch) | |
tree | 59dc8304d5ef8f6800e3537f8d30f8dcbc4a7def | |
parent | 046b5d8334ec0b16253079407c6b1c652eb8b925 (diff) | |
download | archlinuxewe-88c2c6c63748ea1b30a58b938c3924b887b34ae9.tar.xz |
ttf-oxygen neu
-rw-r--r-- | ttf-oxygen/PKGBUILD | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/ttf-oxygen/PKGBUILD b/ttf-oxygen/PKGBUILD new file mode 100644 index 000000000..32c34a83d --- /dev/null +++ b/ttf-oxygen/PKGBUILD @@ -0,0 +1,49 @@ +# Maintainer: Erich Eckner <arch at eckner dot net> +# 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 +pkgver=5.4.3 +pkgrel=3 +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' 'armv7h') # 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' 'qt5-base') +provides=('ttf-font') +options=('!emptydirs') +source=("https://download.kde.org/stable/plasma/$pkgver/oxygen-fonts-$pkgver.tar.xz") +sha256sums=('a02f6580e9a53cb16694a99adbb6dbf76f17584f3e97f469a22286299507838c') + +prepare() { + mkdir -p build +} + +build() { + cd build + + cmake ../oxygen-fonts-$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-$pkgver/COPYING-{GPL+FE.txt,OFL} \ + "$pkgdir"/usr/share/licenses/$pkgname +} |