summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 30080683808f2069938718e6cd46f04b5a3c26a4 (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
# Maintainer: Jonas Costa <contact@jonascosta.ch>
pkgname=popstudio
pkgver=5.0
pkgrel=1
pkgdesc="Extracts and converts various file types found in PopCap games."
arch=("x86_64")
url="https://github.com/YingFengTingYu/PopStudio_Old"
license=('Apache-2.0')
provides=("popstudio")
depends=()
makedepends=('dotnet-sdk')

source=("$pkgname-$pkgver.zip::https://github.com/YingFengTingYu/PopStudio_Old/archive/refs/tags/v5.0.tar.gz")
sha256sums=('01db73db3bd2bb170113c1250e4455129a97610538dacc7035507b536cdfbbd3')

build() {
  cd "PopStudio_Old-$pkgver/PopStudio.ConsoleProject"
  export DOTNET_CLI_TELEMETRY_OPTOUT=1
  dotnet publish -c Release -r linux-x64 -o publish_console --self-contained true
}

package() {
  mkdir -p "$pkgdir/usr/bin"
  mkdir -p "$pkgdir/opt/$pkgname"
  cp "$srcdir/PopStudio_Old-$pkgver/PopStudio.ConsoleProject/publish_console/"* "$pkgdir/opt/$pkgname/"
  ln -s "/opt/$pkgname/PopStudio" "$pkgdir/usr/bin/$pkgname"
}