summaryrefslogtreecommitdiff
path: root/community/sdd/PKGBUILD
blob: 5f52b6c37ec1767b10cf9bf1cb8b602f817492f4 (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
# $Id: PKGBUILD 114402 2014-07-01 15:35:08Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=sdd
pkgver=1.52
pkgrel=8
pkgdesc="Faster replacement for a program called dd"
arch=('i686' 'x86_64')
license=('GPL')
url="http://freshmeat.net/projects/sdd/"
#source=(ftp://ftp.berlios.de/pub/sdd/sdd-$pkgver.tar.gz
source=(http://arch.p5n.pp.ru/~sergej/dl/2014/sdd-$pkgver.tar.gz
	build-fix.patch)
options=(!emptydirs)
md5sums=('efb6f2d8a39080c8ad085211e01293d6'
         '3c7af325869c648be045f7c86431200c')

build() {
  cd $srcdir/$pkgname-${pkgver}
  if [ $CARCH = "x86_64" ]; then
	cp RULES/i686-linux-cc.rul RULES/x86_64-linux-cc.rul
	cp RULES/i686-linux-gcc.rul RULES/x86_64-linux-gcc.rul
  fi
  patch -p1 <$srcdir/build-fix.patch
  make
}

package() {
  cd $srcdir/$pkgname-${pkgver}
  make INS_BASE=$pkgdir/usr install
  mkdir -p $pkgdir/usr/share/man
  rm -rf $pkgdir/usr/include/ \
	$pkgdir/usr/lib/ \
	$pkgdir/usr/man/man3/ \
	$pkgdir/usr/man/man5/
  mv $pkgdir/usr/man/* $pkgdir/usr/share/man/
  chown -R root.root $pkgdir
}