blob: 1a0501c139f150d3572c97e0454dad73c08b56a1 (
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
40
41
42
|
# Maintainer: xEricL <aur@alpineclient.com>
pkgname=alpine-client
_gitname=pinnacle
pkgver=1.8.3
pkgrel=1
pkgdesc='A lightweight multi-version Minecraft modpack'
arch=('x86_64')
url='https://alpineclient.com'
license=('MPL2')
depends=('glibc' 'tar' 'xorg-xrandr' 'xdg-desktop-portal' 'zenity')
options=(!strip !debug)
makedepends=('go>=1.23.1' 'git')
source=("${_gitname}-${pkgver}.tar.gz::https://github.com/alpine-client/$_gitname/archive/$pkgver.tar.gz")
# sha256sum is auto-generated in GitHub Actions workflow
sha256sums=('5868f89a2c1fc6151b93e1132aa6d130f659656edadd2a40bb4348bf435e31d9')
build() {
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
cd "$srcdir/$_gitname-$pkgver"
go build -a -trimpath -buildmode=pie -mod=readonly -modcacherw \
-ldflags="-s -w -linkmode=external -X main.version=$pkgver" \
-o alpine-client .
}
package() {
install -Dm755 \
"$srcdir/$_gitname-$pkgver/alpine-client" \
"$pkgdir/usr/bin/alpine-client"
install -Dm644 \
"$srcdir/$_gitname-$pkgver/ci/pkg/linux/arch/alpine-client.desktop" \
"$pkgdir/usr/share/applications/alpine-client.desktop"
install -Dm644 \
"$srcdir/$_gitname-$pkgver/ci/pkg/linux/arch/alpine-client.png" \
"$pkgdir/usr/share/icons/hicolor/256x256/apps/alpine-client.png"
install -Dm644 \
"$srcdir/$_gitname-$pkgver/ci/pkg/linux/arch/LICENSE" \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|