blob: b33925cccb349a59b83a2f4e6bd574ce5f1cbe8a (
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
|
pkgname=devt-git
pkgver=r7.bf16d0c
pkgrel=1
pkgdesc="A simple dev tool CLI to encode/decode/hash/generate strings"
arch=('x86_64')
url="https://github.com/Rokkit-exe/devt-git"
license=('GPL3')
depends=()
makedepends=('go' 'git')
provides=('devt')
conflicts=('devt')
source=("git+ssh://git@github.com/Rokkit-exe/devt.git")
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/devt"
# Use the number of commits + short hash for pkgver
echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/devt"
go build -o devt
}
package() {
install -Dm755 "$srcdir/devt/devt" "$pkgdir/usr/bin/devt"
}
|