summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fdc5f5e654c057a4d6b837f8e97a51098581ecac (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
# Maintainer: Frederic Bezies <fredbezies at gmail dot com>
# Contributor: DavidK <david_king at softhome dot net>
# Contributor: Arkham <arkham at archlinux dot us>
# Contributor: Christoph Zeiler <rabyte*gmail>

pkgname=deutex-devel
pkgver=4.4.902.r15.g1627a78
pkgrel=1
pkgdesc="A WAD file composer for Doom, Heretic, Hexen and Strife"
arch=('i686' 'x86_64')
url="http://www.teaser.fr/~amajorel/deutex/"
license=('custom')
depends=('glibc')
makedepends=('git')
provides=('deutex')
conflicts=('deutex')
source=(git+https://github.com/Doom-Utils/deutex.git)
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/deutex"
  git describe | sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
}

build() {
    # Configure
    cd "$srcdir/deutex"
    ./configure 

    # Compile and install
    make 
}

package() {
    cd "$srcdir/deutex"
    install -d "$pkgdir/usr/bin"
    install -d "$pkgdir/usr/share/man/man6"
    make BINDIR="$pkgdir/usr/bin" \
        MANDIR="$pkgdir/usr/share/man" install 
    # Install license
    install -Dm 644 LICENCE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}