summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c8a4807d80c0e7c833fe50f4cded5a35a5011840 (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
# Maintainer: robertfoster
# Contributor: LIN Rs <LinRs[d]users.noreply.github.com>

_pkgname=devilutionX
pkgname=devilutionx
pkgver=1.0.1
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')
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=('bc25aaad76cedf37e0eac9549ba8f408'
         'c593b446c07608ce2ab2eddac6ce7304')