blob: 975f1e3814d3319242da5038dab7a6f01d75ed89 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# Maintainer: dax <dev@dax.moe>
pkgname=ddhx-git
pkgver=r93.6d0eeb0
pkgrel=1
pkgdesc="Console hexadecimal file viewer"
arch=('x86_64')
url="https://github.com/dd86k/ddhx"
license=('MIT')
depends=()
makedepends=('git' 'dub' 'dmd')
provides=("ddhx")
conflicts=("ddhx")
source=('git+https://github.com/dd86k/ddhx')
md5sums=('SKIP')
pkgver() {
cd ddhx
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd ddhx
dub build -b release-nobounds
}
package() {
cd ddhx
install -D ddhx "$pkgdir"/usr/bin/ddhx
install -D -m 0644 docs/ddhx.1 "$pkgdir"/usr/share/man/man1/ddhx.1
install -D -m 0644 LICENSE "$pkgdir"/usr/share/licenses/ddhx/LICENSE
install -D -m 0644 README.md "$pkgdir"/usr/share/doc/ddhx/README.md
}
|