summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b6c32b6c95345d27f2b04b538fb8ef34521a6346 (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
# Maintainer: Slash <demodevil5[at]yahoo[dot]com>

pkgname=quake-par
pkgver=0.03.01
pkgrel=2
pkgdesc="Quake PAK archiving utility."
url="http://ftp.vim.org/ibiblio/games/quake/"
license=('GPL')
arch=('i686' 'x86_64')
depends=('glibc')
source=("http://ftp.vim.org/ibiblio/games/quake/par-${pkgver}.tar.gz")
sha256sums=('e68a3b78586cd762b29f5d5edca8ea9f263fa100423f4d4fee36c7e0a5061122')

build() {
    cd "${srcdir}/par-${pkgver}"
    ./configure
    make
}

package() {
    cd "${srcdir}/par-${pkgver}"

    # Modify Prefix Directory in Makefile
    /bin/sed -i "s:/usr/local:${pkgdir}/usr:" Makefile.Linux

    # Modify man page Directory in Makefile
    /bin/sed -i "s:\${prefix}/man:${pkgdir}/usr/share/man:" Makefile.Linux

    # Create Destination Directories
    install -d "${pkgdir}"/usr/{bin,share/man/man1}

    make install
}