cruxports/xxd-standalone/Pkgfile

22 lines
675 B
Plaintext

# Description: hexdump utility from vim
# URL: https://www.vim.org/
# Maintainer: John McQuah, jmcquah at disroot dot org
# Depends on:
name=xxd-standalone
version=8.2.5054
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"
}