Initial commit

This commit is contained in:
MilakyS 2026-02-07 16:51:21 +03:00
commit 77a7d3943b
2 changed files with 47 additions and 0 deletions

16
.SRCINFO Normal file
View file

@ -0,0 +1,16 @@
pkgbase = hexview-git
pkgdesc = Simple CLI hex viewer
pkgver = r5.g0bb224e
pkgrel = 1
url = https://github.com/MilakyS/HexViewer
arch = x86_64
license = MIT
makedepends = git
makedepends = gcc
makedepends = make
provides = hexview
conflicts = hexview
source = hexview-git::git+https://github.com/MilakyS/HexViewer.git
sha256sums = SKIP
pkgname = hexview-git

31
PKGBUILD Normal file
View file

@ -0,0 +1,31 @@
# Maintainer: MilakyS <155958845+MilakyS@users.noreply.github.com>
pkgname=hexview-git
pkgver=r5.g0bb224e
pkgrel=1
pkgdesc="Simple CLI hex viewer"
arch=('x86_64')
url="https://github.com/MilakyS/HexViewer"
license=('MIT')
depends=()
makedepends=('git' 'gcc' 'make')
provides=('hexview')
conflicts=('hexview')
source=("${pkgname}::git+${url}.git")
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/$pkgname"
printf "r%s.g%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/$pkgname"
make
}
package() {
cd "$srcdir/$pkgname"
install -Dm755 hexview "$pkgdir/usr/bin/hexview"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}