diff options
author | acxz | 2020-03-04 00:25:42 -0500 |
---|---|---|
committer | acxz | 2020-03-04 00:25:42 -0500 |
commit | 08b031c86548bd897870c110a3d13c2bb5d5eb39 (patch) | |
tree | de0b1fd33f8892bfaeb9e992178f09abf8653960 | |
download | aur-08b031c86548bd897870c110a3d13c2bb5d5eb39.tar.gz |
create blasfeo package
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 29 |
2 files changed, 43 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..a589ae93e241 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = blasfeo + pkgdesc = Basic linear algebra subroutines for embedded optimization + pkgver = 0.1.1 + pkgrel = 1 + url = https://github.com/giaf/blasfeo + arch = i686 + arch = x86_64 + license = BSD 2-Clause + makedepends = cmake + source = https://github.com/giaf/blasfeo/archive/0.1.1.tar.gz + sha256sums = a52169306dfcc43d0aa41b031b98f1d63a4fd0ec7e8139bf95f14dc270ec3b72 + +pkgname = blasfeo + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a8c08b813ac1 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: acxz <akashpatel2008 at yahoo dot com> +pkgname=blasfeo +pkgver=0.1.1 +pkgdesc="Basic linear algebra subroutines for embedded optimization" +url='https://github.com/giaf/blasfeo' +arch=('i686' 'x86_64') +pkgrel=1 +license=('BSD 2-Clause') +makedepends=('cmake') +depends=() +source=(https://github.com/giaf/blasfeo/archive/${pkgver}.tar.gz) +sha256sums=('a52169306dfcc43d0aa41b031b98f1d63a4fd0ec7e8139bf95f14dc270ec3b72') + +build() { + mkdir -p ${srcdir}/${pkgname}-${pkgver}/build + cd ${srcdir}/${pkgname}-${pkgver}/build + + cmake .. \ + -DCMAKE_INSTALL_PREFIX="/usr" \ + -DCMAKE_INSTALL_LIBDIR="lib" \ + -DCMAKE_BUILD_TYPE="Release" + + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}/build" + make DESTDIR="${pkgdir}/" install +} |