diff options
author | éclairevoyant | 2023-01-07 02:49:22 -0500 |
---|---|---|
committer | éclairevoyant | 2023-01-07 02:49:22 -0500 |
commit | 5db959159ca90e7921d256880136c3e2977ca91a (patch) | |
tree | 60b564a10011809041ac89270213fae65098417f | |
parent | bf0e44cd98f7ae5ceb705308fba0b66d0ab58913 (diff) | |
download | aur-5db959159ca90e7921d256880136c3e2977ca91a.tar.gz |
torch7-git: install license, add .gitignore, update build process
Signed-off-by: éclairevoyant <848000+eclairevoyant@users.noreply.github.com>
-rw-r--r-- | .SRCINFO | 12 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 45 |
3 files changed, 31 insertions, 30 deletions
@@ -1,24 +1,22 @@ -# Generated by mksrcinfo v8 -# Sun Aug 28 09:08:45 UTC 2016 pkgbase = torch7-git pkgdesc = LuaJIT-based scientific computing framework - pkgver = r1049.65255ba + pkgver = r1337.dde9e56 pkgrel = 1 url = http://torch.ch arch = x86_64 arch = i686 + license = custom makedepends = cmake makedepends = git - depends = luajit depends = blas depends = lapack + depends = luajit depends = torch7-cwrap-git depends = torch7-paths-git optdepends = torch7-trepl-git: Interactive REPL shell provides = torch7 conflicts = torch7 - source = torch7-git::git://github.com/torch/torch7 - sha512sums = SKIP + source = torch7::git+https://github.com/torch/torch7 + b2sums = SKIP pkgname = torch7-git - diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..05c6d4d4c97b --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +* +!.gitignore +!.SRCINFO +!PKGBUILD @@ -1,36 +1,35 @@ # Maintainer: Adrián Pérez de Castro <aperez@igalia.com> -pkgdesc='LuaJIT-based scientific computing framework' -pkgname='torch7-git' -pkgver=r1049.65255ba + +_pkgname=torch7 +pkgname="$_pkgname-git" +pkgver=r1337.dde9e56 pkgrel=1 +pkgdesc='LuaJIT-based scientific computing framework' +arch=('x86_64' 'i686') url='http://torch.ch' -source=("${pkgname}::git://github.com/torch/torch7") -depends=('luajit' 'blas' 'lapack' 'torch7-cwrap-git' 'torch7-paths-git') -optdepends=('torch7-trepl-git: Interactive REPL shell') -conflicts=('torch7') -provides=('torch7') +license=('custom') +depends=('blas' 'lapack' 'luajit' 'torch7-cwrap-git' 'torch7-paths-git') makedepends=('cmake' 'git') -arch=('x86_64' 'i686') -sha512sums=('SKIP') +optdepends=('torch7-trepl-git: Interactive REPL shell') +provides=("$_pkgname") +conflicts=("$_pkgname") +source=("$_pkgname::git+https://github.com/torch/$_pkgname") +b2sums=('SKIP') -pkgver () { - cd "${pkgname}" - ( - set -o pipefail - git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || - printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" - ) +pkgver() { + cd $_pkgname + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } -build () { - cd "${pkgname}" +build() { + cd $_pkgname cmake . \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DLUADIR=/usr/share/lua/5.1 \ -DLIBDIR=/usr/lib/lua/5.1 \ -DLUA_BINDIR=/usr/bin \ - -DLUA_INCDIR=/usr/include/luajit-2.0 \ + -DLUA_INCDIR=/usr/include/luajit-2.1 \ -DLUA_LIBDIR=/usr/lib \ -DLUALIB=/usr/lib/libluajit-5.1.so \ -DLUA=/usr/bin/luajit @@ -38,7 +37,7 @@ build () { } package () { - cd "${pkgname}" - make DESTDIR="${pkgdir}" install + cd $_pkgname + make DESTDIR="$pkgdir" install + install -Dm644 COPYRIGHT.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } - |