summary refs log tree commit diff
path: root/iosevka/PKGBUILD
blob: e33dab36ddc036c339e959bd3bd8eb26893350ab (plain) (blame)
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
26
27
28
29
30
# Maintainer: Alexis Starfall <us@starfall.systems>
pkgname=iosevka-raindrops
pkgver=30.3.1
pkgrel=1
pkgdesc="custom Iosevka build"
arch=('any')
url="https://typeof.net/Iosevka"
license=('OFL')
makedepends=('nodejs' 'ttfautohint')
source=("https://github.com/be5invis/Iosevka/archive/refs/tags/v${pkgver}.tar.gz"
	"private-build-plans.toml")
sha256sums=('ff5a0e1ddfc55c6e29b4340e331cbf3b00ffb5582b16f1d06ee26d14835637fa'
            'SKIP')

prepare() {
	cp private-build-plans.toml Iosevka-$pkgver/private-build-plans.toml
}

build() {
	cd Iosevka-$pkgver
	npm install
	npm run build -- ttf::$pkgname
}

package() {
	cd Iosevka-$pkgver
	install -d $pkgdir/usr/share/fonts/TTF
	install -m644 dist/$pkgname/TTF/*.ttf $pkgdir/usr/share/fonts/TTF/
	install -Dm644 LICENSE.md $pkgdir/usr/share/licenses/$pkgname/LICENSE
}