Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New package: khmer-fonts-ttf-5.0 #12714

Merged
merged 1 commit into from
Jun 30, 2019
Merged

Conversation

sgn
Copy link
Member

@sgn sgn commented Jun 27, 2019

No description provided.

srcpkgs/khmer-fonts-ttf/template Outdated Show resolved Hide resolved
srcpkgs/khmer-fonts-ttf/template Outdated Show resolved Hide resolved
@Chocimier
Copy link
Member

Please set create_wrksrc=yes instead of do_extract.
They didn't said what LGPL version, so we can use any.

@sgn
Copy link
Member Author

sgn commented Jun 29, 2019

Please set create_wrksrc=yes instead of do_extract.

This package need unzip, if we set create_wrksc=yes,
xbps-src doesn't work, please advise!

They didn't said what LGPL version, so we can use any.

Yeah, from LGPL, if they don't specify which version of LGPL, we can use whichever we like.
2.1 would be a sensible choice

@pullmoll
Copy link
Member

pullmoll commented Jun 29, 2019

@zdtcd you need to set workdir to the name of the path contained in the zip. Here's a working template:

# Template file for 'khmer-fonts-ttf'
pkgname=khmer-fonts-ttf
version=5.0
revision=1
archs=noarch
wrksrc="All_KhmerOS_${version}"
hostmakedepends="unzip"
depends="font-util"
short_desc="Fonts for Khmer and Latin script"
maintainer="Doan Tran Cong Danh <congdanhqx@gmail.com>"
license="LGPL-2.1-or-later"
homepage="http://www.khmeros.info/?q=en/fonts"
distfiles="${SOURCEFORGE_SITE}/khmer/Fonts%20-%20KhmerOS/KhmerOS%20Fonts%20${version}-%20LGPL%20Licence/All_
KhmerOS_${version}.zip"
checksum=62fec2273016fb6e69b18635e696fd2c91953af9cbe757b341721aec2232432e
font_dirs="/usr/share/fonts/TTF"

do_install() {
        for f in ./*.ttf; do
                vinstall "$f" 644 usr/share/fonts/TTF
        done
}

BTW one of the fonts is KhmerOS .ttf - note the blank between the name a the .ttf.

@sgn
Copy link
Member Author

sgn commented Jun 30, 2019 via email

@pullmoll
Copy link
Member

I'd say leave it as it is. Just remember the fact in case it's causing problems for somebody later on... I could imagine a GUI input field where you enter a font name, and which strips leading / trailing blanks, but I don't know of such an application :)

@pullmoll pullmoll merged commit 623a0a8 into void-linux:master Jun 30, 2019
@sgn sgn deleted the khmer-fonts branch October 24, 2019 16:18
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants