updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / deroff / PKGBUILD
blobad4d9c58e575b5c0a485b670597d949fc18fe208
1 # Contributor: bocke <bocke@mycity.rs>
3 pkgname=deroff
4 pkgver=2.0
5 pkgrel=1
6 pkgdesc="Removes roff constructs from documents"
7 arch=('i686' 'x86_64')
8 url="http://www.moria.de/~michael/deroff/"
9 license=('gpl')
10 source=('http://www.moria.de/~michael/deroff/deroff-2.0.tar.gz')
11 md5sums=('dcc4ce030ca719a36f34b01c8afebfda')
13 build() {
14         cd "$srcdir/$pkgname-$pkgver"
15         ./configure --prefix=/usr
16         make
17         make prefix="$pkgdir/usr" install
19         # Moving man pages to appropriate location
20         mv "$pkgdir/usr/man" "$pkgdir/usr/share/man"
22         # Compressing man pages
23         gzip "$pkgdir/usr/share/man/man1/$pkgname.1"
24         gzip "$pkgdir/usr/share/man/de/man1/$pkgname.1"
26         # Installing docs
27         install -d -m755 "$pkgdir/usr/share/doc/$pkgname-$pkgver"
28         install -m644 "$srcdir/$pkgname-$pkgver/README" \
29                 "$pkgdir/usr/share/doc/$pkgname-$pkgver"
30         install -m644 "$srcdir/$pkgname-$pkgver/NEWS" \
31                 "$pkgdir/usr/share/doc/$pkgname-$pkgver"
33         # Installing license
34         install -d -m755 "$pkgdir/usr/share/licenses/$pkgname"
35         install -m644 "$srcdir/$pkgname-$pkgver/COPYING" \
36                 "$pkgdir/usr/share/licenses/$pkgname"
38