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
|
2022-04-07 16:27:20 -04:00
|
|
|
version=8.2.4708
|
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"
|
|
|
|
}
|