blob: 965fc88afc730579cf41d7b32c7247343ab22773 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# Maintainer: witt <1989161762 at qq dot com>
pkgname=ttf-ptcode-git
pkgver=r4.0a3769a
pkgrel=1
pkgdesc='Ligatures font for PT Mono .'
arch=('any')
url='https://github.com/liangjingkanji/PTCode'
license=('OFL')
conflicts=("${pkgname%-git}" "ptcode")
provides=("${pkgname%-git}" "ptcode")
makedepends=('git')
source=("${pkgname%-git}::git+${url}.git")
sha256sums=('SKIP')
pkgver() {
cd "${pkgname%-git}"
( set -o pipefail
git describe --long --abbrev=7 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
)
}
package() {
install -Dm644 "${srcdir}/${pkgname%-git}/font/"*.ttf -t "${pkgdir}/usr/share/fonts/PTCode"
install -Dm644 "${srcdir}/${pkgname%-git}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}"
}
|