blob: 0da6524d9121aab9e08664f908d3d3a38fabf412 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Maintainer: Sukanka <su975853527 [AT] gmail.com>
pkgname=yade-doc
pkgver=2024.02a
pkgrel=1
pkgdesc="Yet Another Dynamic Engine, free software for discrete element modeling Documentation"
arch=("any")
url='https://yade-dem.org/doc/index.html'
license=('GPL2')
makedepends=(
'yade'
# for make doc
'python-sphinx'
'python-bibtexparser'
'python-ipython-genutils'
'python-pickleshare'
'texlive-bin'
'texlive-core'
'texlive-latexextra'
'texlive-pictures'
# for manpage
'help2man'
'openssh'
'fmt' 'cmake' 'tk'
)
source=("trunk-${pkgver}.tar.gz::https://gitlab.com/yade-dev/trunk/-/archive/${pkgver}/trunk-${pkgver}.tar.gz"
"${pkgname}.patch"
)
sha512sums=('e3c4cf14124494ebc824a66d5e818fb3037eec86be1e2668af786046cd988d68510aa19c41a1e7ba5837fcaae72529c4b40f7e2a8871d9bfda799fd81895a2b1'
'ffd3b27b8ccb9c6a8adaa7858d01b74b2fcbda64e6d1673b11cc33dc52a278b0ba4fd558352d15366f52023a6053c055546b5c8febccce1d1439cf6b5a3a755d')
prepare(){
# Follow https://yade-dem.org/doc/installation.html#compilation
test -d trunk && rm -rf trunk
mv trunk-${pkgver} trunk
test -d build || mkdir build
cd trunk
patch --strip=1 < ../${pkgname}.patch
}
package(){
cd "$srcdir"/build
install -d ${pkgdir}/usr/share/doc/${pkgbase}
install -d ${pkgdir}/usr/share/man/man1
cmake ../trunk \
-DCMAKE_INSTALL_PREFIX=/usr -DNOSUFFIX=ON \
-DYADE_DOC_PATH=${pkgdir}/usr/share/doc/${pkgbase} \
-DYADE_MAN_PATH=${pkgdir}/usr/share/man/man1/
make doc
make manpage
}
|