blob: 7dc9e8fb8ac5d7b77cda1e9ff4daae58c6815c8a (
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
33
34
35
36
37
38
39
|
# Maintainer: Ephemeral <theepehemral.txt@gmail.com>
# shellcheck disable=SC2034
_pkgname=rong
pkgname=${_pkgname}-git
pkgver=4.2.1.r8.gb5481f6
pkgrel=1
pkgdesc="A Material You and Base16 color generator"
arch=('x86_64')
url="https://github.com/Nadim147c/rong"
license=('GPL-3.0-only')
makedepends=('go' "git" 'just')
provides=("$_pkgname")
conflicts=("${_pkgname}" "${_pkgname}-bin")
depends=("glibc" "ffmpeg")
source=("${_pkgname}::git+$url.git")
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/${_pkgname}" || exit
git describe --long --tags --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$srcdir/${_pkgname}" || exit
env GOPATH="$srcdir/go" \
GOCACHE="$srcdir/go-cache" \
GOMODCACHE="$srcdir/go/pkg/mod" \
GOENV=off \
CGO_ENABLED=0 \
VERSION="$pkgver" \
just build
}
package() {
cd "$srcdir/${_pkgname}" || exit
env PREFIX="$pkgdir/usr/" just install
}
|