summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7c3143d2448ba61493dd9841f8bf7cb3c18d87d5 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Maintainer: robertfoster
# Contributor: LIN Rs <LinRs[d]users.noreply.github.com>

_pkgname=devilutionX
pkgname=devilutionx
pkgver=1.0.0
pkgrel=1
pkgdesc="Diablo devolved for linux"
arch=('i686' 'x86_64')
url="https://github.com/diasurgical/devilutionX"
license=('custom:unlicense')
depends=('freetype2' 'graphite' 'libpng' 'libsodium' 'pcre' 'sdl2_mixer'
'sdl2_ttf' 'sdl2_ttf' 'sdl2_ttf')
makedepends=('cmake' 'gcc-libs')
optdepends=('ttf-charis-sil: CharisSILB.ttf')
install="$pkgname".install
source=("https://github.com/diasurgical/devilutionX/archive/$pkgver.tar.gz"
"$pkgname.png")

prepare() {
    cd "$srcdir/${_pkgname}-$pkgver"
    if [ ! -d build ]; then
        mkdir build
    fi
    cd build
    cmake  .. -DCMAKE_BUILD_TYPE=Release
}

build() {
    cd "$srcdir/${_pkgname}-$pkgver"
    cd build
    make
}
package() {
    cd "$srcdir/${_pkgname}-$pkgver"
    
    install -vDm755 build/"$pkgname" "$pkgdir"/usr/bin/"$pkgname"
    install -vDm644 LICENSE -t "$pkgdir"/usr/share/licenses/"$pkgname"
    
    # Installing Icons
    install -Dm644 ../$pkgname.png \
    $pkgdir/usr/share/pixmaps/${pkgname}.png
    install -Dm644 Packaging/fedora/$pkgname.desktop \
    "$pkgdir"/usr/share/applications/$pkgname.desktop
}

md5sums=('2cc387a742aa124941e418c552ae3e0e'
         'c593b446c07608ce2ab2eddac6ce7304')