diff options
author | morguldir | 2024-01-15 16:31:27 +0100 |
---|---|---|
committer | morguldir | 2024-01-15 16:31:27 +0100 |
commit | bca5f3f9dfc7b393c09ceeb009c1a1c97bee1ad9 (patch) | |
tree | d8bf02ea35a35c5dd8b3fa3a96aae61d58b81c53 | |
parent | 535411ff600a43c689de8fa7559488832ed731aa (diff) | |
download | aur-bca5f3f9dfc7b393c09ceeb009c1a1c97bee1ad9.tar.gz |
Create package based on an-anime-games-launcher-git
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | PKGBUILD | 36 | ||||
-rw-r--r-- | an-anime-game-launcher.desktop | 9 | ||||
-rw-r--r-- | anime-games-launcher.desktop | 9 |
5 files changed, 33 insertions, 39 deletions
@@ -1,8 +1,8 @@ -pkgbase = an-anime-game-launcher-git - pkgdesc = A Launcher for a specific anime game with auto-patching, discord rpc and time tracking - pkgver = 3.9.4.r1.gfc9c650 +pkgbase = anime-games-launcher-git + pkgdesc = Universal linux launcher for anime games + pkgver = 1.0.0.r3.g762e822 pkgrel = 1 - url = https://github.com/an-anime-team/an-anime-game-launcher + url = https://github.com/an-anime-team/anime-games-launcher arch = x86_64 license = GPL3 makedepends = rust @@ -15,9 +15,9 @@ pkgbase = an-anime-game-launcher-git optdepends = mangohud: FPS Hud/GUI optdepends = gamemode: Game Optimizations optdepends = gamescope: a tool from Valve that allows for games to run in an isolated Xwayland instance - source = git+https://github.com/an-anime-team/an-anime-game-launcher - source = an-anime-game-launcher.desktop + source = git+https://github.com/an-anime-team/anime-games-launcher + source = anime-games-launcher.desktop md5sums = SKIP - md5sums = f0cfe73897e8f49e92e0dfc41326fb0b + md5sums = 654ba383b74455d04c96d88ad40013ee -pkgname = an-anime-game-launcher-git +pkgname = anime-games-launcher-git diff --git a/.gitignore b/.gitignore index 707609fc188c..9298969e2a4b 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,4 @@ !.gitignore !.SRCINFO !PKGBUILD -!an-anime-game-launcher.desktop +!anime-games-launcher.desktop @@ -1,12 +1,14 @@ -# Maintainer: xstraok <maximkorotkov4@gmail.com> +# Contributor: morguldir <morguldir@protonmail.com> +# Contributor: xstraok <maximkorotkov4@gmail.com> # Contributor: DrakeTDL <everyone@disroot.org> -pkgname="an-anime-game-launcher-git" +# Based on https://aur.archlinux.org/packages/an-anime-game-launcher-git +pkgname="anime-games-launcher-git" _pkgname="${pkgname%-git}" -pkgver=3.9.4.r1.gfc9c650 +pkgver=1.0.0.r3.g762e822 pkgrel=1 -pkgdesc="A Launcher for a specific anime game with auto-patching, discord rpc and time tracking" +pkgdesc="Universal linux launcher for anime games" arch=("x86_64") -url="https://github.com/an-anime-team/an-anime-game-launcher" +url="https://github.com/an-anime-team/anime-games-launcher" license=("GPL3") depends=( git @@ -23,26 +25,18 @@ optdepends=( "gamescope: a tool from Valve that allows for games to run in an isolated Xwayland instance" ) source=( - "git+https://github.com/an-anime-team/an-anime-game-launcher" + "git+https://github.com/an-anime-team/anime-games-launcher" "${_pkgname}.desktop" ) noextract=() -md5sums=( - SKIP - "f0cfe73897e8f49e92e0dfc41326fb0b" -) +md5sums=('SKIP' + '654ba383b74455d04c96d88ad40013ee') pkgver() { cd "${_pkgname}" - git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' + git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } -prepare() { - cd "${_pkgname}" - git switch next - git submodule update --init --recursive --single-branch - git pull -} build() { cd "${_pkgname}" @@ -55,10 +49,10 @@ package() { install -dm755 "${pkgdir}/usr/lib/${pkgname}" install -dm755 "${pkgdir}/usr/bin/" - cp target/release/anime-game-launcher "${pkgdir}/usr/lib/${pkgname}/${_pkgname}" + cp target/release/anime-games-launcher "${pkgdir}/usr/lib/${pkgname}/${_pkgname}" ln -s "/usr/lib/${pkgname}/${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}" - install -Dm644 "assets/images/icon.png" "${pkgdir}/usr/share/pixmaps/an-anime-game-launcher.png" - install -Dm644 "assets/images/icon.png" "${pkgdir}/usr/share/icons/moe.launcher.an-anime-game-launcher.png" - install -Dm644 "${srcdir}/an-anime-game-launcher.desktop" -t "${pkgdir}/usr/share/applications" + install -Dm644 "assets/images/icon.png" "${pkgdir}/usr/share/pixmaps/anime-games-launcher.png" + install -Dm644 "assets/images/icon.png" "${pkgdir}/usr/share/icons/moe.launcher.anime-games-launcher.png" + install -Dm644 "${srcdir}/anime-games-launcher.desktop" -t "${pkgdir}/usr/share/applications" } diff --git a/an-anime-game-launcher.desktop b/an-anime-game-launcher.desktop deleted file mode 100644 index 034408612114..000000000000 --- a/an-anime-game-launcher.desktop +++ /dev/null @@ -1,9 +0,0 @@ -[Desktop Entry] -Name=An Anime Game Launcher -Comment=An Launcher for a specific anime game with auto-patching, discord rpc and time tracking -Exec=an-anime-game-launcher -Terminal=false -Type=Application -Icon=an-anime-game-launcher -StartupWMClass=moe.launcher.an-anime-game-launcher -Categories=Game diff --git a/anime-games-launcher.desktop b/anime-games-launcher.desktop new file mode 100644 index 000000000000..e70db68db115 --- /dev/null +++ b/anime-games-launcher.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=Anime Games Launcher +Comment=Universal linux launcher for anime games +Exec=anime-games-launcher +Terminal=false +Type=Application +Icon=anime-games-launcher +StartupWMClass=moe.launcher.anime-games-launcher +Categories=Game |