subrepo:
  subdir:   "levmar"
  merged:   "660143e"
upstream:
  origin:   "https://aur.archlinux.org/levmar"
  branch:   "master"
  commit:   "660143e"
git-subrepo:
  version:  "0.4.1"
  origin:   "???"
  commit:   "???"
This commit is contained in:
Gabriel Ebner 2020-12-26 19:09:28 +01:00
parent f812d6d36e
commit 16a6cf87d8
5 changed files with 81 additions and 0 deletions

14
levmar/.AURINFO Normal file
View File

@ -0,0 +1,14 @@
pkgbase = levmar
pkgdesc = Levenberg-Marquardt nonlinear least squares algorithms in C/C++
pkgver = 2.6
pkgrel = 2
url = http://www.ics.forth.gr/~lourakis/levmar
arch = i686
arch = x86_64
license = GPL
depends = f2c
depends = lapack
source = http://www.ics.forth.gr/~lourakis/levmar/levmar-2.6.tgz
pkgname = levmar

15
levmar/.SRCINFO Normal file
View File

@ -0,0 +1,15 @@
pkgbase = levmar
pkgdesc = Levenberg-Marquardt nonlinear least squares algorithms in C/C++
pkgver = 2.6
pkgrel = 3
url = http://users.ics.forth.gr/~lourakis/levmar
arch = i686
arch = x86_64
license = GPL
depends = f2c
depends = lapack
source = http://users.ics.forth.gr/~lourakis/levmar/levmar-2.6.tgz
md5sums = 16bc34efa1617219f241eef06427f13f
pkgname = levmar

4
levmar/.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
*
!.gitignore
!.SRCINFO
!PKGBUILD

12
levmar/.gitrepo Normal file
View File

@ -0,0 +1,12 @@
; DO NOT EDIT (unless you know what you are doing)
;
; This subdirectory is a git "subrepo", and this file is maintained by the
; git-subrepo command. See https://github.com/git-commands/git-subrepo#readme
;
[subrepo]
remote = https://aur.archlinux.org/levmar
branch = master
commit = 660143efc6497b488b10e269758ea3aa5daa9682
parent = f812d6d36e09ab1c69f947fe5f9f13888016f9bd
method = merge
cmdver = 0.4.1

36
levmar/PKGBUILD Normal file
View File

@ -0,0 +1,36 @@
# maintainer: Antony Lee <anntzer dot lee at gmail dot com>
# contributor: Carl Rogers <carl.rogers@gmail.com>
pkgname='levmar'
pkgver=2.6
pkgrel=3
pkgdesc='Levenberg-Marquardt nonlinear least squares algorithms in C/C++'
url='http://users.ics.forth.gr/~lourakis/levmar'
arch=('i686' 'x86_64')
license=('GPL')
depends=('f2c' 'lapack')
source=('http://users.ics.forth.gr/~lourakis/levmar/levmar-2.6.tgz')
md5sums=('16bc34efa1617219f241eef06427f13f')
# Fool the server.
DLAGENTS=('http::/usr/bin/curl -A not_a_bot -fLC - --retry 3 --retry-delay 3 -o %o %u')
build() {
# Adapted from Debian packaging by Daniil Ivanov.
cd $pkgname-$pkgver
mkdir -p sobj
# actually use LIBS, not just define them
sed -i 's/#-llapack -lblas -lf2c/$\(LIBS\)/' Makefile.so
# add math library to LIBS
sed -i 's/-llapack -lblas -lf2c #/-llapack -lblas -lf2c -lm #/' Makefile.so
# move end line comments to a separate line
sed -i 's/\(.*\) #\(.*\)/#\2\n\1/' Makefile.so
make -f Makefile.so
}
package() {
cd $pkgname-$pkgver
install -Dpm 755 sobj/liblevmar.so.2.2 $pkgdir/usr/lib/liblevmar.so.2.2
install -Dpm 644 levmar.h $pkgdir/usr/include/levmar/levmar.h
ln -rs $pkgdir/usr/lib/liblevmar.so.2{.2,}
ln -rs $pkgdir/usr/lib/liblevmar.so{.2.2,}
}