feat: 🎸 Add package
This commit is contained in:
commit
1c5072bb49
3 changed files with 63 additions and 0 deletions
21
.SRCINFO
Normal file
21
.SRCINFO
Normal file
|
@ -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
|
31
PKGBUILD
Normal file
31
PKGBUILD
Normal file
|
@ -0,0 +1,31 @@
|
|||
# Maintainer: Kamack38 <kamack38.biznes@gmail.com>
|
||||
_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
|
||||
}
|
11
up-metro-for-steam-skin.install
Normal file
11
up-metro-for-steam-skin.install
Normal file
|
@ -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
|
||||
}
|
Loading…
Reference in a new issue