arch-ppa/src/ttf-oxygen/PKGBUILD

50 lines
1.4 KiB
Bash
Raw Normal View History

2017-11-25 21:32:19 -05:00
# Maintainer: David Phillips <david@sighup.nz>
# Contributor: 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-11-25 21:32:19 -05:00
pkgrel=4
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'
2017-11-25 21:32:19 -05:00
arch=('any')
2016-11-05 01:29:34 -04:00
license=('custom:OFL' 'GPL' 'custom:GPL+FE')
2017-11-25 21:32:19 -05:00
makedepends=('extra-cmake-modules' 'fontforge' 'qt5-base')
2016-11-05 01:29:34 -04:00
provides=('ttf-font')
options=('!emptydirs')
2017-11-25 21:32:19 -05:00
source=("https://cgit.kde.org/oxygen-fonts.git/snapshot/oxygen-fonts-${pkgver}.tar.xz")
sha256sums=('c240a0ecf5c0acbc638f0ae16a87b1733a8f1f0512374923c1ee1be694ac72fe')
2016-11-05 01:29:34 -04:00
prepare() {
2017-07-01 12:45:39 -04:00
mkdir -p build
2016-11-05 01:29:34 -04:00
}
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
2017-07-01 12:45:39 -04:00
install -m644 ../oxygen-fonts-$pkgver/COPYING-{GPL+FE.txt,OFL} \
2016-12-14 23:46:27 -05:00
"$pkgdir"/usr/share/licenses/$pkgname
2016-11-05 01:29:34 -04:00
}