summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 26996e6fc59e14fb376b79d2edd19d444622f374 (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
# Maintainer: carstene1ns <arch carsten-teibes de>

_pkgbase=dunelegacy
pkgname=$_pkgbase-git
pkgver=v0.96.3.8.g319cb34
pkgrel=1
pkgdesc="Updated clone of Westood Studios' Dune2 (Git version)"
arch=('i686' 'x86_64')
url="http://dunelegacy.sourceforge.net"
license=('GPL2')
depends=('sdl_mixer')
makedepends=('git')
conflicts=("$_pkgbase")
provides=("$_pkgbase")
install=$pkgname.install
source=($_pkgbase::"git+https://dunelegacy.git.sourceforge.net/gitroot/dunelegacy/dunelegacy")
sha256sums=('SKIP')
md5sums=('SKIP')

pkgver() {
  cd $_pkgbase

  local ver="$(git describe --long)"
  printf "%s" "${ver//-/.}"
}

build() {
  cd $_pkgbase

  autoreconf --install
  ./configure --prefix=/usr
  make
}

package() {
  cd $_pkgbase

  make DESTDIR="$pkgdir" install

  # install icon and desktop files
  install -Dm644 $_pkgbase.png "$pkgdir/usr/share/pixmaps/$_pkgbase.png"
  install -Dm644 $_pkgbase.desktop "$pkgdir/usr/share/applications/$_pkgbase.desktop"
}