mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
udunits: improve PKGBUILD
This commit is contained in:
parent
9f5dfc40ef
commit
2d06c3a431
4 changed files with 28 additions and 51 deletions
|
@ -1,4 +1,5 @@
|
|||
# Maintainer: Martin C. Doege <mdoege at compuserve dot com>
|
||||
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [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>
|
||||
|
@ -7,28 +8,26 @@ pkgname=udunits
|
|||
pkgver=2.2.28
|
||||
pkgrel=5
|
||||
pkgdesc="A tool for calculations of physical quantities"
|
||||
arch=('i686' 'x86_64')
|
||||
arch=(x86_64)
|
||||
url="http://www.unidata.ucar.edu/software/udunits/"
|
||||
license=('MIT')
|
||||
depends=('expat')
|
||||
options=('!libtool')
|
||||
install=udunits.install
|
||||
source=(https://artifacts.unidata.ucar.edu/repository/downloads-udunits/$pkgver/$pkgname-$pkgver.tar.gz)
|
||||
license=(custom)
|
||||
depends=(expat)
|
||||
source=("https://artifacts.unidata.ucar.edu/repository/downloads-udunits/$pkgver/$pkgname-$pkgver.tar.gz")
|
||||
sha256sums=('590baec83161a3fd62c00efa66f6113cec8a7c461e3f61a5182167e0cc5d579e')
|
||||
|
||||
build() {
|
||||
cd "$srcdir/$pkgname-$pkgver"
|
||||
cd "$pkgname-$pkgver"
|
||||
./configure --prefix=/usr --disable-static
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/$pkgname-$pkgver"
|
||||
cd "$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"
|
||||
install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" COPYRIGHT
|
||||
cd "$pkgdir/usr/lib"
|
||||
local _lib
|
||||
for _lib in libudunits2.so*; do
|
||||
ln -s "$_lib" "${_lib/#libudunits2/libudunits}"
|
||||
done
|
||||
}
|
||||
|
||||
# vim:set ts=2 sw=2 et:
|
||||
|
|
9
BioArchLinux/udunits/lilac.py
Executable file → Normal file
9
BioArchLinux/udunits/lilac.py
Executable file → Normal file
|
@ -1,12 +1,9 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
from lilaclib import *
|
||||
|
||||
|
||||
def pre_build():
|
||||
update_pkgver_and_pkgrel(_G.newver.lstrip('v'))
|
||||
update_pkgver_and_pkgrel(_G.newver)
|
||||
run_cmd(['updpkgsums'])
|
||||
|
||||
def post_build():
|
||||
git_pkgbuild_commit()
|
||||
# vim:set ts=2 sw=2 et:
|
||||
|
||||
git_pkgbuild_commit()
|
||||
|
|
19
BioArchLinux/udunits/lilac.yaml
Executable file → Normal file
19
BioArchLinux/udunits/lilac.yaml
Executable file → Normal file
|
@ -1,10 +1,13 @@
|
|||
maintainers:
|
||||
- github: starsareintherose
|
||||
email: kuoi@bioarchlinux.org
|
||||
build_prefix: extra-x86_64
|
||||
maintainers:
|
||||
- github: pekkarr
|
||||
email: pekkarr@protonmail.com
|
||||
update_on:
|
||||
- source: regex
|
||||
url: "https://artifacts.unidata.ucar.edu/service/rest/repository/browse/downloads-udunits/"
|
||||
regex: href="(\d+.\d+.\d+)/"
|
||||
# vim:set ts=2 sw=2 et:
|
||||
|
||||
- source: regex
|
||||
url: "https://artifacts.unidata.ucar.edu/service/rest/repository/browse/downloads-udunits/"
|
||||
regex: href="(\d+.\d+.\d+)/"
|
||||
- source: alpm
|
||||
alpm: expat
|
||||
repo: core
|
||||
provided: libexpat.so
|
||||
strip_release: true
|
||||
|
|
|
@ -1,22 +0,0 @@
|
|||
infodir=/usr/share/info
|
||||
filelist=(udunits2.info udunits2lib.info udunits2prog.info)
|
||||
|
||||
post_install() {
|
||||
[[ -x usr/bin/install-info ]] || return 0
|
||||
for file in "${filelist[@]}"; do
|
||||
install-info "$infodir/$file.gz" "$infodir/dir" 2> /dev/null
|
||||
done
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install "$1"
|
||||
}
|
||||
|
||||
pre_remove() {
|
||||
[[ -x usr/bin/install-info ]] || return 0
|
||||
for file in "${filelist[@]}"; do
|
||||
install-info --delete "$infodir/$file.gz" "$infodir/dir" 2> /dev/null
|
||||
done
|
||||
}
|
||||
|
||||
# vim:set ts=2 sw=2 et:
|
Loading…
Add table
Reference in a new issue