28 lines
973 B
Bash
28 lines
973 B
Bash
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
|
|
# Maintainer: Alexander F. Rødseth <xyproto@archlinux.org>
|
|
|
|
pkgname=tinyxxd
|
|
pkgver=1.3.7
|
|
pkgrel=1
|
|
pkgdesc='Standalone version of the hex dump utility that comes with ViM'
|
|
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
|
|
url='https://github.com/xyproto/tinyxxd'
|
|
provides=(xxd)
|
|
conflicts=(xxd)
|
|
license=(GPL-2.0-only MIT)
|
|
source=("$url/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz")
|
|
b2sums=('f222d97df7b1fbe148cbe2940a900f3c77242b67397c832c8160cd7f7d8398a14404e14cac738b7c99f9a1de3cf04673adf23a73fff3ccf63153cfc252bd60e7')
|
|
|
|
build() {
|
|
make -C $pkgname-$pkgver
|
|
}
|
|
|
|
package() {
|
|
cd $pkgname-$pkgver
|
|
DESTDIR="$pkgdir" make install
|
|
install -Dm644 $pkgname.1 "$pkgdir/usr/share/man/$pkgname/man1/$pkgname.1"
|
|
install -Dm644 AUTHORS.md "$pkgdir/usr/share/licenses/$pkgname/AUTHORS.md"
|
|
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
ln -s /usr/bin/tinyxxd "$pkgdir/usr/bin/xxd"
|
|
}
|