summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9a511feb1fea6c40d4572d1a136b329a85a680e3 (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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# Maintainer: Steve Engledow <steve@offend.me.uk>
pkgname=heroes
pkgver=0.21
pkgrel=3
pkgdesc="Heroes is similar to the Tron and Nibbles games of yore, but includes many graphical improvements and new game features."
url="http://heroes.sourceforge.net"
arch=(x86_64)
license=('GPL')
depends=()
makedepends=(libmikmod sdl)
source=("http://prdownloads.sourceforge.net/heroes/$pkgname-$pkgver.tar.gz"
        "http://prdownloads.sourceforge.net/heroes/$pkgname-data-1.5.tar.gz"
        "http://prdownloads.sourceforge.net/heroes/$pkgname-sound-tracks-1.0.tar.gz"
        "http://prdownloads.sourceforge.net/heroes/$pkgname-sound-effects-1.0.tar.gz"
        "http://prdownloads.sourceforge.net/heroes/$pkgname-hq-sound-tracks-1.0.tar.gz"
        "heroes-0.21.patch")
md5sums=('3238290f219bc978894ba472fac95298'
         '1a53e23b007f526a76df8bef97a41550'
         'bcde6137a4b21b7395fd3d84b42b7888'
         'f4defb80baf765fceac034a408f7ad2e'
         'dafb2ccfb08c132265262231d5655102'
         '7135a9e9a55d4db94d03185c38924d6b')

build() {
	cd "$pkgname-$pkgver"
	patch -p0 <../heroes-0.21.patch
	LDFLAGS=-lm ./configure --prefix=/usr
	make
    cd ..

    cd "$pkgname-data-1.5"
	./configure --prefix=/usr
    make
    cd ..

    cd "$pkgname-sound-tracks-1.0"
	./configure --prefix=/usr
    make
    cd ..

    cd "$pkgname-sound-effects-1.0"
	./configure --prefix=/usr
    make
    cd ..

    cd "$pkgname-hq-sound-tracks-1.0"
	./configure --prefix=/usr
    make
    cd ..
}

package() {
	cd "$pkgname-$pkgver"
	make DESTDIR="$pkgdir/" install
    cd ..

    cd "$pkgname-data-1.5"
	make DESTDIR="$pkgdir/" install
    cd ..

    cd "$pkgname-sound-tracks-1.0"
	make DESTDIR="$pkgdir/" install
    cd ..

    cd "$pkgname-sound-effects-1.0"
	make DESTDIR="$pkgdir/" install
    cd ..

    cd "$pkgname-hq-sound-tracks-1.0"
	make DESTDIR="$pkgdir/" install
    cd ..
}