-
Notifications
You must be signed in to change notification settings - Fork 2
/
PKGBUILD_linux_tycoon
25 lines (23 loc) · 1.04 KB
/
PKGBUILD_linux_tycoon
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Maintainer: Sid Karunaratne <sid at karunaratne dot net>
pkgname=linux-tycoon
_pkgname=LinuxTycoon
pkgver=1.0
pkgrel=2
pkgdesc="a game where you design and manage your own distribution of Linux and compete against other Distros"
arch=('i686' 'x86_64')
url="http://lunduke.com/?page_id=2646"
license=('GPL3')
source=(${pkgname}.desktop "http://www.lunduke.com/linuxtycoon/LinuxTycoon.tar.gz")
sha256sums=("15a5a31de5c8e1a3462a1d755b951fb35743f13507d377dcd5f74f93b33476de" "cc9aa32a33a54069a292a500fe55eae80d62a2583c72c6d677f19bfdcad13659")
if [[ $CARCH = 'i686' ]]; then
depends=(gtk2)
elif [[ $CARCH = 'x86_64' ]]; then
depends=(lib32-gtk2)
fi
package() {
mkdir -p "${pkgdir}/opt/${_pkgname}" "${pkgdir}/usr/bin"
cp -r "${srcdir}/${_pkgname}" "${pkgdir}/opt/"
ln -s "/opt/${_pkgname}/${_pkgname}" "${pkgdir}/usr/bin/${pkgname}"
install -Dm644 "${srcdir}/${_pkgname}/LinuxTycoon.png" "${pkgdir}/usr/share/pixmaps/LinuxTycoon.png"
install -Dm644 ${srcdir}/${pkgname}.desktop "${pkgdir}/usr/share/applications/${pkgname}.desktop"
}