Add git-delta-bin

This commit is contained in:
Marty Oehme 2025-02-23 23:54:34 +01:00
commit a4025ae616
Signed by: Marty
GPG key ID: 4E535BC19C61886E
2 changed files with 28 additions and 0 deletions
git-delta-bin

4
git-delta-bin/README.md Normal file
View file

@ -0,0 +1,4 @@
# git-delta
Please use the official 'delta' package in the repositories.
This package was a test to see how to package 'binary' packages only.

24
git-delta-bin/template Normal file
View file

@ -0,0 +1,24 @@
pkgname=git-delta
version=0.18.2
revision=1
short_desc='A syntax-highlighting pager for git, diff, grep, and blame output.'
archs="x86_64"
homepage="https://dandavison.github.io/delta"
license="MIT License"
distfiles="https://github.com/dandavison/delta/releases/download/${version}/delta-${version}-x86_64-unknown-linux-gnu.tar.gz"
checksum=884b631d2cdbe6f59cabfa04501a6a647c76370e6c99fe8a342f8d6d102ed8dc
maintainer="Marty Oehme <contact@martyoeh.me>"
do_install() {
vlicensedir=/usr/share/licenses/${pkgname}
vdocdir=/usr/share/doc/${pkgname}
vbindir=/usr/bin
mkdir -p "${DESTDIR}${vlicensedir}"
mkdir -p "${DESTDIR}${vdocdir}"
mkdir -p "${DESTDIR}${vbindir}"
install -D -m644 LICENSE "${DESTDIR}${vlicensedir}/LICENSE"
install -D -m644 README.md "${DESTDIR}${vdocdir}/README.md"
install -D -m755 delta "${DESTDIR}${vbindir}/delta"
}