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

Add smiley-sans-git #3031

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions archlinuxcn/smiley-sans-git/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Maintainer: taotieren <[email protected]>

pkgbase=smiley-sans-git
pkgname=({ttf,otf,woff2}-$pkgbase)
pkgver=1.0.0.r1.g7980755
pkgrel=1
pkgdesc='得意黑 Smiley Sans 开发版'
url="https://github.com/atelier-anchor/smiley-sans"
depends=(fontconfig)
makedepends=(git python-brotli python-fontmake python-fonttools)
taotieren marked this conversation as resolved.
Show resolved Hide resolved
license=("OFL-1.1")
arch=(any)
source=("${pkgbase%-git}::git+${url}.git")
sha256sums=('SKIP')

pkgver() {
cd "${srcdir}/${pkgbase%-git}"
git describe --long --tags | sed 's/^v//g;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
cd "${srcdir}/${pkgbase%-git}"
rm -rf "${srcdir}/${pkgbase%-git}/build"
sh "${srcdir}/${pkgbase%-git}/build.sh"
}

package_ttf-smiley-sans-git() {
pkgdesc+=" (ttf)"
conflicts=(${pkgname%-git})

cd "${srcdir}/${pkgbase%-git}/build"

install -Dm644 -t "${pkgdir}/usr/share/fonts/${pkgbase%-git}" *.ttf
install -Dm644 "${srcdir}/${pkgbase%-git}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname%-git}/LICENSE"
}

package_otf-smiley-sans-git() {
pkgdesc+=" (otf)"
conflicts=(${pkgname%-git})

cd "${srcdir}/${pkgbase%-git}/build"

install -Dm644 -t "${pkgdir}/usr/share/fonts/${pkgbase%-git}" *.otf
install -Dm644 "${srcdir}/${pkgbase%-git}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname%-git}/LICENSE"
}

package_woff2-smiley-sans-git() {
pkgdesc+=" (woff2)"
conflicts=(${pkgname%-git})

cd "${srcdir}/${pkgbase%-git}/build"

install -Dm644 -t "${pkgdir}/usr/share/fonts/${pkgbase%-git}" *.woff2
install -Dm644 "${srcdir}/${pkgbase%-git}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname%-git}/LICENSE"
}
14 changes: 14 additions & 0 deletions archlinuxcn/smiley-sans-git/lilac.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
maintainers:
- github: taotieren

build_prefix: archlinuxcn-x86_64

pre_build: vcs_update

post_build_script: |
git_pkgbuild_commit()
update_aur_repo()

update_on:
- source: github
github: atelier-anchor/smiley-sans