# Maintainer: AlphaJack pkgname="pterodactyl-wings" pkgver=1.11.2 pkgrel=1 pkgdesc="The server control plane for Pterodactyl Panel" url="https://pterodactyl.io/" license=("MIT") arch=("x86_64" "aarch64") depends=("docker") makedepends=("go") conflicts=("pterodactyl-daemon") source=("$pkgname-$pkgver.tar.gz::https://github.com/pterodactyl/wings/archive/refs/tags/v$pkgver.tar.gz" "$pkgname.service") sha256sums=('26f6c79c3e36bf08ac4d8bb607cda900510b41308e0e2a3380460f52003434b8' '62dfff25f9bdae4769f4201ed30e7c2bfca54611bee75512c5626e74c764f46e') build(){ cd "wings-$pkgver" export CGO_CPPFLAGS="${CPPFLAGS}" export CGO_CFLAGS="${CFLAGS}" export CGO_CXXFLAGS="${CXXFLAGS}" export CGO_LDFLAGS="${LDFLAGS}" export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw" go build -o "build/wings" -v wings.go # upx not included as it returns the following: upx: build/wings: CantPackException: bad DT_GNU_HASH n_bucket=0x62 n_bitmask=0x8 len=0x2c0 } package(){ cd "wings-$pkgver" install -d 640 "$pkgdir/etc/pterodactyl" install -D -m 755 "build/wings" "$pkgdir/usr/bin/wings" install -D -m 644 "$srcdir/$pkgname.service" "$pkgdir/usr/lib/systemd/system/$pkgname.service" }