summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: df37feb781ae117ffd4346ea1f8111a4ab9e163d (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
pkgname=halflife-xash3d-fwgs
pkgver=1.0.0
pkgrel=1
pkgdesc="Half Life powered by the xash3d-fwgs engine. NOTE: You will need to own the game so it can import the game files from your Half Life game file. "
arch=('x86_64' 'i686' 'aarch64')
license=('GPL')
depends=('xash3d-fwgs-bin' 'wget' 'unzip' 'yad' 'zenity')
replaces=('halflife')
conflicts=('halflife')
makedepends=('unzip')
url="https://gitlab.com/half-life1"
source=("https://gitlab.com/linuxbombay/half-life1/halflife/-/archive/$pkgver/halflife-$pkgver.tar.bz2")
sha256sums=('50e0dc1ca2b03953e4032ea51f3b8f8e8fb3f076ba6a0193cd6191aa65435b3f')

package() {
    install -dm755 "$pkgdir/usr/bin"
    install -dm775 "$pkgdir/usr/share/games/HalfLife"
    install -dm755 "$pkgdir/usr/share/pixmaps"
    
    cp -r "$srcdir/halflife-$pkgver/." "$pkgdir/usr/share/games/HalfLife/"
    cp -r "$srcdir/halflife-$pkgver/halflife" "$pkgdir/usr/bin"
    cp -r "$srcdir/halflife-$pkgver/halflife.png" "$pkgdir/usr/share/pixmaps"

    # Desktop Entry
    install -Dm644 "$srcdir/halflife-$pkgver/halflife.desktop" \
    "$pkgdir/usr/share/applications/halflife.desktop"
    sed -i s%/usr/share%/opt% "$pkgdir/usr/share/applications/halflife.desktop"
}