2015-02-23 07:23:41 +08:00
|
|
|
#Contributions from Arch: https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/ttf-oxygen
|
|
|
|
source ../plasma.conf
|
|
|
|
|
|
|
|
pkgname=oxygen-fonts
|
|
|
|
pkgver=${PVersion}
|
|
|
|
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
|
|
|
|
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=("${PServer}/${pkgver}/${pkgname}-${PSubVersion}.tar.xz")
|
|
|
|
sha256sums=( $(getSum ${pkgname} | head -n 1) )
|
|
|
|
|
|
|
|
prepare() {
|
2015-04-12 07:53:47 +08:00
|
|
|
mkdir -p build
|
2015-02-23 07:23:41 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd build
|
2015-02-24 05:41:32 +08:00
|
|
|
cmake_kf5 ../oxygen-fonts-${pkgver}
|
2015-02-23 07:23:41 +08:00
|
|
|
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}
|
|
|
|
}
|