git subrepo clone https://aur.archlinux.org/libsnl-svn
subrepo: subdir: "libsnl-svn" merged: "0c63eff" upstream: origin: "https://aur.archlinux.org/libsnl-svn" branch: "master" commit: "0c63eff" git-subrepo: version: "0.4.1" origin: "???" commit: "???"
This commit is contained in:
parent
a792eddff1
commit
c72e831df9
16
libsnl-svn/.SRCINFO
Normal file
16
libsnl-svn/.SRCINFO
Normal file
@ -0,0 +1,16 @@
|
||||
pkgbase = libsnl-svn
|
||||
pkgdesc = libSNL is a library of routines used for the manipulation of NURBS curves and surfaces.
|
||||
pkgver = 18
|
||||
pkgrel = 5
|
||||
url = http://libsnl.sourceforge.net/
|
||||
arch = i686
|
||||
arch = x86_64
|
||||
license = GPL2
|
||||
makedepends = subversion
|
||||
provides = libsnl
|
||||
conflicts = libsnl
|
||||
source = libsnl::svn://svn.code.sf.net/p/libsnl/code/trunk
|
||||
md5sums = SKIP
|
||||
|
||||
pkgname = libsnl-svn
|
||||
|
12
libsnl-svn/.gitrepo
Normal file
12
libsnl-svn/.gitrepo
Normal 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/libsnl-svn
|
||||
branch = master
|
||||
commit = 0c63efff07af98b780941a5f12ea71d78c202807
|
||||
parent = a792eddff198b0bf50ffa2c9b9c3fe845dbf3513
|
||||
method = merge
|
||||
cmdver = 0.4.1
|
53
libsnl-svn/PKGBUILD
Normal file
53
libsnl-svn/PKGBUILD
Normal file
@ -0,0 +1,53 @@
|
||||
# Maintainer: Maurizio D'Addona <mauritiusdadd@gmail.com>
|
||||
|
||||
_svnname='libsnl'
|
||||
|
||||
pkgname=libsnl-svn
|
||||
pkgver=18
|
||||
pkgrel=5
|
||||
pkgdesc="libSNL is a library of routines used for the manipulation of NURBS curves and surfaces."
|
||||
arch=('i686' 'x86_64')
|
||||
url="http://libsnl.sourceforge.net/"
|
||||
license=('GPL2')
|
||||
provides=('libsnl')
|
||||
conflicts=('libsnl')
|
||||
depends=()
|
||||
makedepends=('subversion')
|
||||
|
||||
source=("$_svnname::svn://svn.code.sf.net/p/$_svnname/code/trunk")
|
||||
md5sums=('SKIP')
|
||||
|
||||
pkgver()
|
||||
{
|
||||
cd "$srcdir/$_svnname"
|
||||
local ver="$(svnversion)"
|
||||
printf "%s" "${ver//[[:alpha:]]}"
|
||||
}
|
||||
|
||||
prepare()
|
||||
{
|
||||
cd "$srcdir/$_svnname/src"
|
||||
oldflags="export cflags = -Wall -fPIC -g"
|
||||
newflags="export cflags = -Wall -fPIC -O2 -g"
|
||||
sed -i -e "s/$oldflags/$newflags/g" ./makefile
|
||||
}
|
||||
|
||||
build()
|
||||
{
|
||||
cd "$srcdir/$_svnname/src"
|
||||
msg "Building..."
|
||||
export CXXFLAGS="${CXXFLAGS} -O2"
|
||||
export CFLAGS="${CFLAGS} -O2"
|
||||
make
|
||||
msg2 "Build complete."
|
||||
}
|
||||
|
||||
package()
|
||||
{
|
||||
cd "$srcdir/$_svnname/src"
|
||||
msg "Copying files..."
|
||||
install -Dm644 libSNL.so.0.2 $pkgdir/usr/lib/libSNL.so.0.2
|
||||
ln -s libSNL.so.0.2 $pkgdir/usr/lib/libSNL.so
|
||||
install -d $pkgdir/usr/include/libSNL
|
||||
cp *.h $pkgdir/usr/include/libSNL
|
||||
}
|
Loading…
Reference in New Issue
Block a user