blob: 0ac28a6c79335dbbb2dce23019a58849bc1e9cb8 (
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
51
52
53
54
55
|
# Maintainer: Masanori Ogino <masanori.ogino@gmail.com>
# Contributor: aksr <aksr at t-com dot me>
pkgname=nuweb
pkgver=1.62
pkgrel=1
epoch=
pkgdesc="A Simple Literate Programming Tool"
arch=('i686' 'x86_64')
url="http://nuweb.sourceforge.net/"
license=('custom:BSD-3-Clause')
depends=('texlive-core')
install=nuweb.install
source=("http://downloads.sourceforge.net/project/nuweb/$pkgname-$pkgver.tar.gz" "nuweb.install" "nuweb.LICENSE")
sha256sums=('255a8f62460f5c14f4c4b356b96e0357a37a6652ae0584064f8e9fae19e953ae'
'93b550ff61543e6628a858cb28d70c7a850da8aa4fbfc7172830eae70fc78014'
'86d9ee75add7cee2e21c0423182523e9525b2f5824dbf802fea3e337d0a49e77')
build() {
cd "$srcdir/$pkgname-$pkgver"
latexmk -pdf nuwebdoc
make nuweb
./nuweb nuweb.w
./nuweb nuwebsty.w
latexmk -pdf nuweb
}
check() {
cd "$srcdir/$pkgname-$pkgver"
make -k check
}
package() {
cp nuweb.LICENSE "$srcdir/$pkgname-$pkgver/LICENSE"
cd "$srcdir/$pkgname-$pkgver"
mkdir -p $pkgdir/usr/share/{emacs/site-lisp,texmf/tex/latex,doc/$pkgname,licenses/$pkgname,man/man1}
install -D -m755 $srcdir/$pkgname-$pkgver/nuweb $pkgdir/usr/bin/nuweb
install -D -m644 $srcdir/$pkgname-$pkgver/nuweb.1 $pkgdir/usr/share/man/man1/nuweb.1
install -D -m644 $srcdir/$pkgname-$pkgver/nuweb.el $pkgdir/usr/share/emacs/site-lisp/nuweb.el
install -D -m644 $srcdir/$pkgname-$pkgver/README $pkgdir/usr/share/doc/$pkgname/README
install -D -m644 $srcdir/$pkgname-$pkgver/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
install -D -m644 $srcdir/$pkgname-$pkgver/bibnames.sty $pkgdir/usr/share/texmf/tex/latex/$pkgname/bibnames.sty
install -D -m644 $srcdir/$pkgname-$pkgver/html.sty $pkgdir/usr/share/texmf/tex/latex/$pkgname/html.sty
install -D -m644 $srcdir/$pkgname-$pkgver/nwhren.sty $pkgdir/usr/share/texmf/tex/latex/$pkgname/nwhren.sty
install -D -m644 $srcdir/$pkgname-$pkgver/nwhres.sty $pkgdir/usr/share/texmf/tex/latex/$pkgname/nwhres.sty
install -D -m644 $srcdir/$pkgname-$pkgver/nuweb.pdf $pkgdir/usr/share/doc/$pkgname/nuweb.pdf
install -D -m644 $srcdir/$pkgname-$pkgver/nuwebdoc.pdf $pkgdir/usr/share/doc/$pkgname/nuwebdoc.pdf
}
|