~dricottone/pkgbuilds

ref: 5c473508665c0852889f1183af26bc1390f631bc pkgbuilds/udunits/PKGBUILD -rw-r--r-- 1.1 KiB
5c473508Dominic Ricottone Added r-conflicted 1 year, 28 days ago
                                                                                
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
# Contributor: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com
# Contributor: Martin C. Doege <mdoege at compuserve dot com>
# Contributor: TDY <tdy@archlinux.info>
# Contributor: Kaiting Chen <kaitocracy@gmail.com>
# Contributor: Anton Bazhenov <anton.bazhenov at gmail>

pkgname=udunits
pkgver=2.2.28
pkgrel=3
pkgdesc="A tool for calculations of physical quantities"
arch=(x86_64 i686)
url="http://www.unidata.ucar.edu/software/udunits/"
license=(MIT)
depends=(expat)
options=(!libtool)
source=(https://artifacts.unidata.ucar.edu/repository/downloads-udunits/${pkgver}/${pkgname}-${pkgver}.tar.gz)
sha256sums=('590baec83161a3fd62c00efa66f6113cec8a7c461e3f61a5182167e0cc5d579e')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  autoreconf -f -i

  ./configure --prefix=/usr --disable-static
  make
}

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

  make DESTDIR="${pkgdir}" install

  ln -s libudunits2.so "${pkgdir}/usr/lib/libudunits.so"
  ln -s libudunits2.so.0 "${pkgdir}/usr/lib/libudunits.so.0"
  ln -s libudunits2.so.0.1.0 "${pkgdir}/usr/lib/libudunits.so.0.1.0"
  install -Dm0644 COPYRIGHT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}