~dblsaiko/pkgbuilds

8ee724b381d5b6d46297f90d1fe86ca2146b1439 — 2xsaiko 6 months ago b00e495
upgpkg: flora-git r11.9571e40-2
3 files changed, 28 insertions(+), 9 deletions(-)

M flora-git/.SRCINFO
M flora-git/PKGBUILD
A flora-git/flora.sh
M flora-git/.SRCINFO => flora-git/.SRCINFO +4 -2
@@ 1,7 1,7 @@
pkgbase = flora-git
	pkgdesc = Fabric Lightweight Obfuscation Remapping Assistant
	pkgver = r10.63aa99e
	pkgrel = 1
	pkgver = r11.9571e40
	pkgrel = 2
	url = https://github.com/Parzivail-Modding-Team/FLORA
	arch = any
	license = MIT


@@ 10,7 10,9 @@ pkgbase = flora-git
	provides = flora
	conflicts = flora
	source = flora::git+https://github.com/Parzivail-Modding-Team/FLORA.git
	source = flora.sh
	sha512sums = SKIP
	sha512sums = a1949d20f6224cce775ada96f7de63cb8e503c977cd1bae7b5192fcd3ba19f83e22ce947235a73b1188ce42043c85140abe149043ef4b3e4b93b4d971576150c

pkgname = flora-git


M flora-git/PKGBUILD => flora-git/PKGBUILD +12 -7
@@ 1,7 1,7 @@
pkgname=flora-git
_pkgname=${pkgname%-git}
pkgver=r10.63aa99e
pkgrel=1
pkgver=r11.9571e40
pkgrel=2
pkgdesc="Fabric Lightweight Obfuscation Remapping Assistant"
arch=("any")
url="https://github.com/Parzivail-Modding-Team/FLORA"


@@ 10,8 10,14 @@ provides=("${_pkgname}")
conflicts=("${_pkgname}")
depends=("dotnet-runtime")
makedepends=("dotnet-sdk")
source=("${_pkgname}::git+https://github.com/Parzivail-Modding-Team/FLORA.git")
sha512sums=("SKIP")
source=(
  "${_pkgname}::git+https://github.com/Parzivail-Modding-Team/FLORA.git"
  'flora.sh'
)
sha512sums=(
  'SKIP'
  'a1949d20f6224cce775ada96f7de63cb8e503c977cd1bae7b5192fcd3ba19f83e22ce947235a73b1188ce42043c85140abe149043ef4b3e4b93b4d971576150c'
)

pkgver() {
  cd "${srcdir}/${_pkgname}"


@@ 27,12 33,11 @@ build() {
}

package() {
  cd "${srcdir}/${_pkgname}"

  install -dm755 "${pkgdir}/usr/bin/"
  install -dm755 "${pkgdir}/usr/lib/flora/"

  cp -r build/* "${pkgdir}/usr/lib/flora/"
  cp -r "${srcdir}/${_pkgname}/build"/* "${pkgdir}/usr/lib/flora/"
  install -m755 "${srcdir}/flora.sh" "${pkgdir}/usr/bin/flora"
  ln -s "/usr/lib/flora/FLORA" "${pkgdir}/usr/bin/FLORA"

  install -Dm644  "${srcdir}/${_pkgname}/LICENSE" "${pkgdir}/usr/share/licenses/${_pkgname}/COPYING"

A flora-git/flora.sh => flora-git/flora.sh +12 -0
@@ 0,0 1,12 @@
#!/bin/bash

CONF_DIR="$HOME/.config/FLORA"

mkdir -p ${CONF_DIR}

# if args contains -c then don't append default conf path
if [[ " ${@} " =~ " -c " ]]; then
  /usr/lib/flora/FLORA ${@}
else
  /usr/lib/flora/FLORA -c ${CONF_DIR} ${@}
fi