diff options
author | Holden Lewis | 2020-10-11 15:11:25 -0700 |
---|---|---|
committer | Holden Lewis | 2020-10-11 15:11:25 -0700 |
commit | 2705e68e5d6c3d1c2cc9c22e02776af52f7e93c0 (patch) | |
tree | fe4bbc9b238cd06b40415e2edb388f63c30e84dd | |
download | aur-2705e68e5d6c3d1c2cc9c22e02776af52f7e93c0.tar.gz |
Add initial PKGBUILD
-rw-r--r-- | .SRCINFO | 22 | ||||
-rw-r--r-- | .gitignore | 8 | ||||
-rw-r--r-- | PKGBUILD | 40 |
3 files changed, 70 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..94e0183ee108 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,22 @@ +pkgbase = impostor-server + pkgdesc = Unofficial dedicated server for Among Us. + pkgver = 1.1.0 + pkgrel = 1 + url = https://aeonlucid.com/Impostor/ + arch = x86_64 + license = GPL3 + makedepends = git + makedepends = dotnet-sdk + makedepends = lttng-ust + depends = zlib + depends = krb5 + provides = impostor-server + conflicts = impostor-server + options = !strip + source = git+https://github.com/AeonLucid/Impostor.git#tag=v1.1.0 + source = https://dot.net/v1/dotnet-install.sh + sha512sums = SKIP + sha512sums = 7cdf91eda30e18ae3042ea77ad2a43e66e5a020df1ae09ff0b73f327385a34b51da3cd52361ef2714c853d30fffc8dd077733858b07ec6f79a444b6d8dcf637c + +pkgname = impostor-server + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..af2bb617d9d9 --- /dev/null +++ b/.gitignore @@ -0,0 +1,8 @@ +# makepkg +/pkg/ +/src/ +/*.pkg.tar.zst + +# Impostor +/Impostor/ +/dotnet-install.sh diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..8456c8022fc0 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: Holden Lewis <holdenplewis at gmail dot com> + +pkgname=impostor-server +pkgver=1.1.0 +pkgrel=1 +pkgdesc='Unofficial dedicated server for Among Us.' +url='https://aeonlucid.com/Impostor/' +arch=('x86_64') +license=('GPL3') +depends=('zlib' 'krb5') +makedepends=('git' 'dotnet-sdk' 'lttng-ust') +provides=('impostor-server') +conflicts=('impostor-server') +options=('!strip') +source=("git+https://github.com/AeonLucid/Impostor.git#tag=v${pkgver}" + "https://dot.net/v1/dotnet-install.sh") +sha512sums=('SKIP' + '7cdf91eda30e18ae3042ea77ad2a43e66e5a020df1ae09ff0b73f327385a34b51da3cd52361ef2714c853d30fffc8dd077733858b07ec6f79a444b6d8dcf637c') + +prepare() { + chmod +x ./dotnet-install.sh + ./dotnet-install.sh --install-dir /usr/share/dotnet -channel Current -version 5.0.100-rc.1.20452.10 + + cd "Impostor/" + git submodule init + git submodule update +} + +build() { + cd "Impostor/" + + dotnet restore ./src + dotnet publish -c release -o ./build/linux-x64 -f net5.0 -r linux-x64 --self-contained --no-restore ./src/Impostor.Server/Impostor.Server.csproj /p:PublishSingleFile=true +} + +package() { + mkdir -p "${pkgdir}/usr/bin/" + + cp --verbose "${srcdir}/Impostor/build/linux-x64/Impostor.Server" "${pkgdir}/usr/bin/impostor-server" +} |