diff options
author | Benoit Brummer | 2017-11-07 15:05:58 +0100 |
---|---|---|
committer | Benoit Brummer | 2017-11-07 15:05:58 +0100 |
commit | 471b586f280f850968a9354b9755396031f3fbab (patch) | |
tree | 2e5145b0c250375068ce5f00621af5f7431d0d92 | |
download | aur-471b586f280f850968a9354b9755396031f3fbab.tar.gz |
Create package cgp-library
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 28 | ||||
-rw-r--r-- | cgp-library.install | 7 |
3 files changed, 51 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..efef21c773b7 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = cgp-library + pkgdesc = Cross platform Cartesian Genetic Programming implementation designed to be simple to use whilst being highly extendable. + pkgver = 2.4 + pkgrel = 1 + url = http://www.cgplibrary.co.uk + arch = i686 + arch = x86_64 + license = GPL3 + makedepends = gcc + makedepends = make + source = http://www.cgplibrary.co.uk/CGP-Library-V2.4.zip + sha256sums = cc7dcdd8ae64d564804763b95375648039d4a921ebc4d486a6a51a8b0d5bad5c + +pkgname = cgp-library + install = cgp-library.install + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..aa1bad921ad2 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: Benoit Brummer <trougnouf at gmail dot com> +pkgname='cgp-library' +pkgver=2.4 +pkgrel=1 +pkgdesc='Cross platform Cartesian Genetic Programming implementation designed to be simple to use whilst being highly extendable.' +url='http://www.cgplibrary.co.uk' +depends=() +makedepends=('gcc' 'make') +license=('GPL3') +arch=('i686' 'x86_64') +source=("${url}/CGP-Library-V${pkgver}.zip") +sha256sums=('cc7dcdd8ae64d564804763b95375648039d4a921ebc4d486a6a51a8b0d5bad5c') + +build() { + cd "${srcdir}" + make so +} + + +package() { + cd "${srcdir}" + mkdir -p "${pkgdir}/usr/lib" + mkdir "${pkgdir}/usr/include" + cp libcgp.so "${pkgdir}/usr/lib" + chmod 0755 "${pkgdir}/usr/lib/libcgp.so" + cp src/cgp.h "${pkgdir}/usr/include/" + install='cgp-library.install' +} diff --git a/cgp-library.install b/cgp-library.install new file mode 100644 index 000000000000..8b862f98968e --- /dev/null +++ b/cgp-library.install @@ -0,0 +1,7 @@ +post_install() { + ldconfig +} + +post_remove() { + ldconfig +} |