initial import
This commit is contained in:
41
liberation-circuit/PKGBUILD
Normal file
41
liberation-circuit/PKGBUILD
Normal file
@@ -0,0 +1,41 @@
|
||||
# Maintainer: Jesus E. <heckyel@riseup.net>
|
||||
|
||||
pkgname=liberation-circuit
|
||||
pkgver=1.3
|
||||
pkgrel=3
|
||||
pkgdesc="A real-time strategy/programming game"
|
||||
arch=('i686' 'x86_64')
|
||||
license=('GPL-3')
|
||||
url="https://github.com/linleyh/liberation-circuit"
|
||||
install=${pkgname}.install
|
||||
depends=('allegro')
|
||||
makedepends=('redo-python')
|
||||
groups=('games')
|
||||
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/linleyh/liberation-circuit/archive/v${pkgver}.tar.gz"
|
||||
"libcirc"
|
||||
"libcirc.desktop"
|
||||
"libcirc.png")
|
||||
sha512sums=('793f7dc64bfb12089ebaa9666527f7a8a4c1a3f1fd4424414a0ad9319c16d2c328148ce380a34acbaa34f61d75bebcb67232d51909f4688599c6ff6e7b9bddf6'
|
||||
'20e0ba848a5842048b9872a133043fda65debc9b82b812b17c48d9eb265c155a12375be27b14acf1049dd9082d4760672a89b19ab7be2b098be30e8e48dc6c4e'
|
||||
'0a687bcf73c3c02d2dcdfd6f65ed7e109dbbdbd4dc1dd37d5ccce12c9efa2b6ee91d3f55671ef88458d473f3699ccc4136d89eb8de92c9ff13a3c9b0b58f84d3'
|
||||
'241ca16f04f118b40edcc85bf07e7eb3f94aa6202f593ebe5b7b38cf52db1dc7d275ffffb2d5839ba8e891368e5f9c62b13141b90f5d295a0b36b07a80f7d427')
|
||||
|
||||
build() {
|
||||
cd liberation-circuit-${pkgver}
|
||||
redo
|
||||
}
|
||||
|
||||
package() {
|
||||
cd liberation-circuit-${pkgver}
|
||||
install -Dm755 ${srcdir}/libcirc "${pkgdir}/usr/games/libcirc"
|
||||
install -dm755 "${pkgdir}/usr/share/games/${pkgname}"
|
||||
install -Dm755 src/g_game "${pkgdir}/usr/share/games/${pkgname}/libcirc"
|
||||
rm bin/libcirc
|
||||
rm bin/libcirc.do
|
||||
cp -rf bin/* "${pkgdir}/usr/share/games/${pkgname}"
|
||||
|
||||
install -Dm644 "$srcdir"/libcirc.png "$pkgdir"/usr/share/pixmaps/libcirc.png
|
||||
install -Dm644 "$srcdir"/libcirc.desktop "$pkgdir"/usr/share/applications/libcirc.desktop
|
||||
|
||||
install -Dm644 LICENSE.md -t "$pkgdir/usr/share/licenses/$pkgname"
|
||||
}
|
||||
8
liberation-circuit/libcirc
Normal file
8
liberation-circuit/libcirc
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
# liberation-circuit start script
|
||||
# Currently there is no way to explicitly specify the asset folder location
|
||||
# so we have to switch the working directory before starting the game.
|
||||
|
||||
cd /usr/share/games/liberation-circuit
|
||||
./libcirc
|
||||
9
liberation-circuit/libcirc.desktop
Normal file
9
liberation-circuit/libcirc.desktop
Normal file
@@ -0,0 +1,9 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Name=Liberation Circuit
|
||||
Comment=A real-time strategy/programming game
|
||||
Exec=libcirc
|
||||
Icon=libcirc
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=Game;StrategyGame;
|
||||
BIN
liberation-circuit/libcirc.png
Normal file
BIN
liberation-circuit/libcirc.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
22
liberation-circuit/liberation-circuit.install
Normal file
22
liberation-circuit/liberation-circuit.install
Normal file
@@ -0,0 +1,22 @@
|
||||
# Colored makepkg-like functions
|
||||
msg_blue() {
|
||||
printf "${blue}==>${bold} $1${all_off}\n"
|
||||
}
|
||||
|
||||
note() {
|
||||
printf "${blue}==>${yellow} NOTE:${bold} $1${all_off}\n"
|
||||
}
|
||||
|
||||
all_off="$(tput sgr0)"
|
||||
bold="${all_off}$(tput bold)"
|
||||
blue="${bold}$(tput setaf 4)"
|
||||
yellow="${bold}$(tput setaf 3)"
|
||||
|
||||
post_install() {
|
||||
note "Please manually change the save file location by editing /usr/share/games/liberation-circuit/init.txt"
|
||||
note "The launcher is called: 'libcirc'"
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install
|
||||
}
|
||||
Reference in New Issue
Block a user