summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD33
1 files changed, 16 insertions, 17 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 1fabc6d8cab..5f81eca28b9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,41 +1,40 @@
-# Maintainer : Daniel Bermond < yahoo-com: danielbermond >
+# Maintainer : Daniel Bermond < gmail-com: danielbermond >
pkgname=tiny-dnn-git
-pkgver=1.0.0a3.r140.g77901b97
-pkgrel=2
-pkgdesc="A C++11 implementation of deep learning for limited computational resource, embedded systems and IoT devices (git version)"
+_srcname=tiny-dnn
+pkgver=1.0.0a3.r246.gc0f576f5
+pkgrel=1
+pkgdesc='A C++11 implementation of deep learning for limited computational resource, embedded systems and IoT devices (git version)'
arch=('any')
-url="https://github.com/tiny-dnn/tiny-dnn"
+url='https://github.com/tiny-dnn/tiny-dnn/'
license=('BSD')
+optdepends=('cereal: for serialization support')
makedepends=('git' 'cmake')
provides=('tiny-dnn')
conflicts=('tiny-dnn')
-source=("${pkgname}"::"git+https://github.com/tiny-dnn/tiny-dnn.git")
+source=('git+https://github.com/tiny-dnn/tiny-dnn.git')
sha256sums=('SKIP')
pkgver() {
- cd "${srcdir}/${pkgname}"
+ cd "$_srcname"
# git, tags available
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//'
}
build() {
- cd "${pkgname}"
+ cd "$_srcname"
cmake \
- -DCMAKE_BUILD_TYPE:STRING=Release \
- -DCMAKE_COLOR_MAKEFILE:BOOL=ON \
- -DCMAKE_INSTALL_PREFIX:PATH="/usr" \
- -DBUILD_TESTS:BOOL=OFF \
- -DBUILD_EXAMPLES:BOOL=OFF \
- -DBUILD_DOCS:BOOL=OFF \
+ -DCMAKE_INSTALL_PREFIX:PATH='/usr' \
-Wno-dev \
.
}
package() {
- cd "${pkgname}"
- make DESTDIR="${pkgdir}" install
- install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ cd "$_srcname"
+
+ make DESTDIR="$pkgdir" install
+
+ install -D -m644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}