diff options
author | Duong Do Minh Chau | 2020-04-16 14:01:12 +0700 |
---|---|---|
committer | Duong Do Minh Chau | 2020-04-16 14:01:12 +0700 |
commit | 30199469e124032bef7e0d4c6f67152f4236e3f4 (patch) | |
tree | 683cb6c5ed25b21797d1e4dbb45e153ed607ddbb | |
parent | 27339ae918168be9bab93636d6a8c598da268c7b (diff) | |
download | aur-30199469e124032bef7e0d4c6f67152f4236e3f4.tar.gz |
Use Arch font packages
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 12 |
2 files changed, 14 insertions, 1 deletions
@@ -22,6 +22,9 @@ pkgbase = o20-git depends = kconfig depends = kiconthemes depends = kcoreaddons + depends = ttf-roboto + depends = ttf-roboto-mono + depends = ttf-opensans provides = o20 conflicts = o20 source = o20-git::git+https://gitlab.com/abstractsoftware/o20/o20coreapps.git @@ -9,6 +9,7 @@ license=('GPL') depends=(zlib syntax-highlighting sonnet breeze qt5-{base,svg,quickcontrols{,2}} k{textwidgets,widgetsaddons,archive,config,iconthemes,coreaddons} + ttf-roboto ttf-roboto-mono ttf-opensans ) makedepends=(git cmake extra-cmake-modules) provides=(${pkgname/-git/}) @@ -27,7 +28,7 @@ build() { # TODO: Use existing font packages instead cmake \ -DCOMPILE_ONLY_WORD=On \ - -DINSTALL_FONT=On \ + -DINSTALL_FONT=Off \ .. make } @@ -38,4 +39,13 @@ package() { cd .. install -Dm644 -t "${pkgdir}/usr/share/licenses/o20" \ COPYING LICENSE + cd dev + # Some fonts are on AUR, I am still thinking about whether + # to put them in dependencies + find o20.fonts/Roboto -name 'RobotoSlab*.ttf' -exec \ + install -Dm644 {} "${pkgdir}/usr/share/fonts/"{} \; + find o20.fonts/Ubuntu -name 'Ubuntu*.ttf' -exec \ + install -Dm644 {} "${pkgdir}/usr/share/fonts/"{} \; + find o20.fonts/Lobster -type f -exec \ + install -Dm644 {} "${pkgdir}/usr/share/fonts/"{} \; } |