commit 1c5072bb495f5eed138e78d53fc6674a0860b5d7 Author: kamack38 <64226248+kamack38@users.noreply.github.com> Date: Sun May 8 18:31:37 2022 +0200 feat: 🎸 Add package diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 00000000000..fc7a41dc6ab --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = up-metro-for-steam-skin + pkgdesc = This non-official addon for Metro for Steam fixes bugs with the current version and adds optional content for you to choose from. + pkgver = 9.1.37r363.53e18a9 + pkgrel = 1 + url = https://github.com/redsigma/UPMetroSkin + install = up-metro-for-steam-skin.install + arch = i686 + arch = x86_64 + license = UNLICENSE + makedepends = git + makedepends = rsync + depends = steam + depends = sssm + provides = metro-for-steam-skin + conflicts = metro-for-steam-skin + source = git+https://github.com/minischetti/metro-for-steam.git + source = git+https://github.com/redsigma/UPMetroSkin + sha1sums = SKIP + sha1sums = SKIP + +pkgname = up-metro-for-steam-skin diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 00000000000..1dde97e2d0e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Kamack38 +_pkgname='metro-for-steam-skin' +pkgname="up-${_pkgname}" +pkgver=9.1.37r363.53e18a9 +pkgrel=1 +pkgdesc="This non-official addon for Metro for Steam fixes bugs with the current version and adds optional content for you to choose from." +arch=('i686' 'x86_64') +url="https://github.com/redsigma/UPMetroSkin" +license=('UNLICENSE') +depends=('steam' 'sssm') +makedepends=('git' 'rsync') +optdepends=() +provides=("${_pkgname}") +conflicts=("${_pkgname}") +source=('git+https://github.com/minischetti/metro-for-steam.git' 'git+https://github.com/redsigma/UPMetroSkin') +sha1sums=('SKIP' + 'SKIP') +install="$pkgname.install" + +pkgver() { + cd UPMetroSkin + printf "%sr%s.%s" "$(cat version | tr -d " \t\n\r")" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + mkdir -p ${pkgdir}/usr/share/steam/skins + install -Dm644 ${srcdir}/metro-for-steam/LICENSE "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE" + mv ${srcdir}/metro-for-steam ${pkgdir}/usr/share/steam/skins + mv "${srcdir}/UPMetroSkin/Unofficial 4.x Patch/Extras/" ${pkgdir}/usr/share/steam/skins/metro-for-steam + rsync -a "${srcdir}/UPMetroSkin/Unofficial 4.x Patch/Main Files [Install First]/" ${pkgdir}/usr/share/steam/skins/metro-for-steam +} diff --git a/up-metro-for-steam-skin.install b/up-metro-for-steam-skin.install new file mode 100644 index 00000000000..c5c941eccec --- /dev/null +++ b/up-metro-for-steam-skin.install @@ -0,0 +1,11 @@ +post_install() { + /usr/bin/sssm sync metro-for-steam +} + +post_upgrade() { + /usr/bin/sssm sync metro-for-steam +} + +post_remove() { + /usr/bin/sssm remove metro-for-steam +} \ No newline at end of file