summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: eb1903a7436137a3a4e10fed90909339a848d79b (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
# Maintainer: Astro Benzene <universebenzene at sina dot com>
# Contributor: Médéric Boquien <mboquien at free dot fr>

pkgname=wcstools-all
_pkgname=wcstools
pkgver=3.9.5
pkgrel=1
pkgdesc="A package of programs for setting and using the world coordinate systems (including libs and headers)"
arch=('i686' 'x86_64')
url="http://tdc-www.harvard.edu/wcstools/"
license=('GPL2')
depends=('glibc')
options=('makeflags')
conflicts=('wcstools')
provides=('wcstools')
source=("http://tdc-www.harvard.edu/software/wcstools/${_pkgname}-${pkgver}.tar.gz"
        'wcstools-rename-shlib.patch')
md5sums=('30ee0aaa74567805b95c4548e654aa48'
         '7b5d283200b6458e522040ac76f42be4')

prepare() {
    cd ${srcdir}/${_pkgname}-${pkgver}

    patch -Np1 -i "${srcdir}/wcstools-rename-shlib.patch"
}

build() {
    cd ${srcdir}/${_pkgname}-${pkgver}

    make all || return 1
}

package() {
    cd ${srcdir}/${_pkgname}-${pkgver}

    install -Dm755 -t "${pkgdir}/usr/bin" bin/*
    install -Dm644 -t "${pkgdir}/usr/include/wcs" libwcs/*.h
    install -Dm644 -t "${pkgdir}/usr/share/man/man1" man/man1/*
    install -d "${pkgdir}/usr/lib"
    cp -a libwcs/*.so* "${pkgdir}/usr/lib"
}