mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 18:42:12 +08:00
48 lines
1.4 KiB
Bash
48 lines
1.4 KiB
Bash
|
#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() {
|
||
|
mkdir 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 "${srcdir}"/oxygen-fonts-${pkgver}/COPYING-{GPL+FE.txt,OFL} \
|
||
|
"${pkgdir}"/usr/share/licenses/${pkgname}
|
||
|
}
|