cruxports/xxd-standalone/Pkgfile

22 lines
675 B
Plaintext
Raw Normal View History

2022-02-05 15:39:19 -05:00
# Description: hexdump utility from vim
# URL: https://www.vim.org/
# Maintainer: John McQuah, jmcquah at disroot dot org
# Depends on:
name=xxd-standalone
2023-02-10 21:03:43 -05:00
version=9.0.1298
2022-02-05 15:39:19 -05:00
release=1
source=(https://raw.githubusercontent.com/vim/vim/v$version/src/xxd/xxd.c
https://raw.githubusercontent.com/vim/vim/v$version/runtime/doc/xxd.1
https://raw.githubusercontent.com/vim/vim/v$version/src/xxd/Makefile)
renames=(xxd-$version.c xxd-$version.1 xxd-Makefile)
build() {
mv xxd-$version.c xxd.c
make -f xxd-Makefile
mkdir -p $PKG/usr/bin $PKG/usr/share/man/man1
install -m755 xxd "$PKG/usr/bin/xxd"
install -m644 xxd-$version.1 "$PKG/usr/share/man/man1/xxd.1"
}