From 831c7555deffa6d4ef7971580ac9b06027a2ef71 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Wed, 3 Nov 2021 14:27:42 -0500 Subject: [PATCH] Add srcinfo script --- _scripts/build_srcinfo.fish | 7 +++++++ htop-vim-mode-git/.SRCINFO | 1 - htop-vim-mode-git/.gitignore | 2 +- makefile | 5 ++++- readme.md | 4 ++-- ttf-iosevka-lyte/.SRCINFO | 4 +++- ttf-iosevka-lyte/.gitignore | 2 +- ttf-iosevka-lyte/PKGBUILD | 19 +++++++++++++++++++ 8 files changed, 37 insertions(+), 7 deletions(-) create mode 100644 _scripts/build_srcinfo.fish create mode 100644 ttf-iosevka-lyte/PKGBUILD diff --git a/_scripts/build_srcinfo.fish b/_scripts/build_srcinfo.fish new file mode 100644 index 0000000..8a5e323 --- /dev/null +++ b/_scripts/build_srcinfo.fish @@ -0,0 +1,7 @@ +fd PKGBUILD | +while read -l pkgfile + set pkgdir (dirname $pkgfile) + pushd $pkgdir && begin + makepkg --printsrcinfo > .SRCINFO + end && popd +end diff --git a/htop-vim-mode-git/.SRCINFO b/htop-vim-mode-git/.SRCINFO index a2a67bb..d6a0ca5 100644 --- a/htop-vim-mode-git/.SRCINFO +++ b/htop-vim-mode-git/.SRCINFO @@ -16,4 +16,3 @@ pkgbase = htop-vim-mode-git sha256sums = SKIP pkgname = htop-vim-mode-git - diff --git a/htop-vim-mode-git/.gitignore b/htop-vim-mode-git/.gitignore index f803327..05c6d4d 100644 --- a/htop-vim-mode-git/.gitignore +++ b/htop-vim-mode-git/.gitignore @@ -1,4 +1,4 @@ * !.gitignore !.SRCINFO -!PKGINFO +!PKGBUILD diff --git a/makefile b/makefile index df841ec..1d88205 100644 --- a/makefile +++ b/makefile @@ -4,5 +4,8 @@ default: test test: namcap +srcinfo: + @fish _scripts/build_srcinfo.fish + namcap: - fd PKGBUILD | xargs namcap + @fd PKGBUILD | xargs namcap diff --git a/readme.md b/readme.md index c163cee..bf389f1 100644 --- a/readme.md +++ b/readme.md @@ -6,7 +6,7 @@ This repository holds my AUR packages. ## Packages -+ [`htop-vim-mode-git`](./htop-vim-mode-git) - +- [`htop-vim-mode-git`](./htop-vim-mode-git) (Deleted since my changes were mainlined) +- [`ttf-iosevka-lyte`](./ttf-iosevka-lyte) [aur-search]: https://aur.archlinux.org/packages/?SeB=m&K=lytedev diff --git a/ttf-iosevka-lyte/.SRCINFO b/ttf-iosevka-lyte/.SRCINFO index cb26ea0..05dd1b3 100644 --- a/ttf-iosevka-lyte/.SRCINFO +++ b/ttf-iosevka-lyte/.SRCINFO @@ -5,7 +5,9 @@ pkgbase = ttf-iosevka-lyte url = https://github.com/lytedev/Iosevka arch = any license = SIL Open Font License v1.1 - source = https://files.lyte.dev/iosevkalyte/rel/iosevkalyte-${pkgver}.tar.zstd + source = https://files.lyte.dev/iosevkalyte/rel/iosevkalyte-7.2.8.tar.zstd + source = ttf-iosevka-lyte-7.2.8-1-LICENSE.md::https://files.lyte.dev/iosevkalyte/rel/iosevkalyte-7.2.8-LICENSE.md sha256sums = b52d069ccdc28bce58c5ef640fa6782cd01ca0b603e9b87fa0f9b5c9eac47cb3 + sha256sums = 72c3d557ff41d871680652f56afd565ba6834c90eadc45a4ec15410dce1c0c80 pkgname = ttf-iosevka-lyte diff --git a/ttf-iosevka-lyte/.gitignore b/ttf-iosevka-lyte/.gitignore index f803327..05c6d4d 100644 --- a/ttf-iosevka-lyte/.gitignore +++ b/ttf-iosevka-lyte/.gitignore @@ -1,4 +1,4 @@ * !.gitignore !.SRCINFO -!PKGINFO +!PKGBUILD diff --git a/ttf-iosevka-lyte/PKGBUILD b/ttf-iosevka-lyte/PKGBUILD new file mode 100644 index 0000000..ba9a381 --- /dev/null +++ b/ttf-iosevka-lyte/PKGBUILD @@ -0,0 +1,19 @@ +# Maintainer: Daniel Flanagan + +pkgname=ttf-iosevka-lyte +pkgver=7.2.8 +pkgrel=1 +pkgdesc="lytedev's customized Iosevka font" +arch=('any') +url="https://github.com/lytedev/Iosevka" +license=('SIL Open Font License v1.1') +source=("https://files.lyte.dev/iosevkalyte/rel/iosevkalyte-${pkgver}.tar.zstd" + "${pkgname}-${pkgver}-${pkgrel}-LICENSE.md::https://files.lyte.dev/iosevkalyte/rel/iosevkalyte-${pkgver}-LICENSE.md") +sha256sums=("b52d069ccdc28bce58c5ef640fa6782cd01ca0b603e9b87fa0f9b5c9eac47cb3" + "72c3d557ff41d871680652f56afd565ba6834c90eadc45a4ec15410dce1c0c80") + +package() { + install -d ${pkgdir}/usr/share/fonts/TTF/ + install -m644 iosevkalyte/ttf/*.ttf ${pkgdir}/usr/share/fonts/TTF/ + install -D -m644 ${pkgname}-${pkgver}-${pkgrel}-LICENSE.md ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md +}