summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2360ab6eecb23b0bec22374877c82d6f4bf172bf (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
# Maintainer: ChacaS0 <incoming+chacas0-chksum-13830438-issue-@incoming.gitlab.com>
pkgname=chksum-git
pkgver=0.1
pkgrel=1
pkgdesc='Check and compare easily the checksum of a file.'
arch=('x86_64')
url="https://gitlab.com/ChacaS0/chksum"
license=('Apache')
provides=("chksum")
conflicts=("chksum")
makedepends=('git' 'go-pie')
source=("git+https://gitlab.com/chacas0/chksum#branch=master")
sha256sums=('SKIP')

build() {
    cd "$srcdir/chksum"
    go build \
        -trimpath \
        -ldflags "-extldflags ${LDFLAGS}" \
        .
}

package() {
    cd "$srcdir/$pkgname"
    install -Dm755 "${pkgname%-bin-git}" "$pkgdir/usr/bin/chksum"
    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/${pkgname%-bin-git}/LICENSE"
}