Add srcinfo script

This commit is contained in:
Daniel Flanagan 2021-11-03 14:27:42 -05:00
parent 28cb16c72d
commit 831c7555de
Signed by: lytedev
GPG key ID: 5B2020A0F9921EF4
8 changed files with 37 additions and 7 deletions

View file

@ -0,0 +1,7 @@
fd PKGBUILD |
while read -l pkgfile
set pkgdir (dirname $pkgfile)
pushd $pkgdir && begin
makepkg --printsrcinfo > .SRCINFO
end && popd
end

View file

@ -16,4 +16,3 @@ pkgbase = htop-vim-mode-git
sha256sums = SKIP sha256sums = SKIP
pkgname = htop-vim-mode-git pkgname = htop-vim-mode-git

View file

@ -1,4 +1,4 @@
* *
!.gitignore !.gitignore
!.SRCINFO !.SRCINFO
!PKGINFO !PKGBUILD

View file

@ -4,5 +4,8 @@ default: test
test: namcap test: namcap
srcinfo:
@fish _scripts/build_srcinfo.fish
namcap: namcap:
fd PKGBUILD | xargs namcap @fd PKGBUILD | xargs namcap

View file

@ -6,7 +6,7 @@ This repository holds my AUR packages.
## 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 [aur-search]: https://aur.archlinux.org/packages/?SeB=m&K=lytedev

View file

@ -5,7 +5,9 @@ pkgbase = ttf-iosevka-lyte
url = https://github.com/lytedev/Iosevka url = https://github.com/lytedev/Iosevka
arch = any arch = any
license = SIL Open Font License v1.1 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 = b52d069ccdc28bce58c5ef640fa6782cd01ca0b603e9b87fa0f9b5c9eac47cb3
sha256sums = 72c3d557ff41d871680652f56afd565ba6834c90eadc45a4ec15410dce1c0c80
pkgname = ttf-iosevka-lyte pkgname = ttf-iosevka-lyte

View file

@ -1,4 +1,4 @@
* *
!.gitignore !.gitignore
!.SRCINFO !.SRCINFO
!PKGINFO !PKGBUILD

19
ttf-iosevka-lyte/PKGBUILD Normal file
View file

@ -0,0 +1,19 @@
# Maintainer: Daniel Flanagan <daniel@lyte.dev>
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
}