blob: de0a9102297e6d01d64d40aabe905f564dd8af99 (
plain)
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
26
27
28
29
30
31
32
|
# Maintainer: Lukas1818 aur at lukas1818 dot de
pkgname=gog-factorio
pkgver=1.1.72
_pkgtag=$pkgver
pkgrel=1
pkgdesc="A game in which you build and maintain factories"
arch=('x86_64')
url="https://www.gog.com/game/factorio"
license=('custom')
conflicts=('factorio' 'factorio-demo' 'factorio-experimental' 'factorio-headless' 'factorio-headless-experimental')
provides=("factorio=$pkgver")
makedepends=('lgogdownloader')
depends=('libxinerama' 'libxrandr' 'libxcursor' 'alsa-lib' 'libpulse' 'libglvnd')
source=("factorio_${pkgver//./_}_40478.sh::gogdownloader://1238653230/en3installer0"
"Factorio.desktop")
sha512sums=('c342432faf3b51da93f6a1fcd0165f26c5bec6ad90585035720b566a485fd333a40830cc5e6ea76139e185b845534f2de7b9424638ba1b1f51cf57d1f3936073'
'32df74d21fdd19b70b3b81beb5b5735e82602c002e55eb40b77a365472f68294bbefbdf44c2fb6e6bfa1ff454f87751094506009d754a20697789f610cadb71a')
DLAGENTS+=('gogdownloader::/usr/bin/lgogdownloader --download-file=%u -o %o')
package()
{
install -d "${pkgdir}/usr/share/factorio/"
mv "${srcdir}/data/noarch/game/data" -T "${pkgdir}/usr/share/factorio"
chmod -R 644 "${pkgdir}/usr/share/factorio/"
find "${pkgdir}/usr/share/factorio/" -type d -exec chmod 755 {} \;
install -Dm 755 "${srcdir}/data/noarch/game/bin/x64/factorio" "${pkgdir}/usr/bin/factorio"
install -Dm 755 "${srcdir}/Factorio.desktop" "$pkgdir/usr/share/applications/Factorio.desktop"
install -Dm 644 "${srcdir}/data/noarch/support/icon.png" "${pkgdir}/usr/share/pixmaps/$pkgname.png"
install -Dm 644 "${srcdir}/data/noarch/docs/End User License Agreement.txt" "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
}
|