summary refs log tree commit diff
path: root/iosevka/PKGBUILD
diff options
context:
space:
mode:
authorStarfall <us@starfall.systems>2023-10-21 15:29:25 -0500
committerStarfall <us@starfall.systems>2023-10-21 15:29:25 -0500
commitc9701a93aa8400874b545e8d0efbfaf1bcf7aab8 (patch)
tree9300623b627b5efeb35b91bd2dd505a29d52102b /iosevka/PKGBUILD
iosevka
Diffstat (limited to 'iosevka/PKGBUILD')
-rw-r--r--iosevka/PKGBUILD30
1 files changed, 30 insertions, 0 deletions
diff --git a/iosevka/PKGBUILD b/iosevka/PKGBUILD
new file mode 100644
index 0000000..bc1e817
--- /dev/null
+++ b/iosevka/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer: Alexis Starfall <us@starfall.systems>
+pkgname=iosevka-custom
+pkgver=27.3.0
+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=("34c0846e557d48a6167f1cf6818a51c096088bd17de22257738997c60115d13e"
+	"7100fd9a142b00a3f3d858ba34b8eaea329358816fff3e605bf1c0e05ec16821")
+
+prepare() {
+	cp private-build-plans.toml Iosevka-$pkgver/private-build-plans.toml
+}
+
+build() {
+	cd Iosevka-$pkgver
+	npm install
+	npm run build -- ttf::iosevka-starfall
+}
+
+package() {
+	cd Iosevka-$pkgver
+	install -d $pkgdir/usr/share/fonts/TTF
+	install -m644 dist/iosevka-starfall/ttf/*.ttf $pkgdir/usr/share/fonts/TTF/
+	install -Dm644 LICENSE.md $pkgdir/usr/share/licenses/$pkgname/LICENSE
+}