summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 478d7379a62fa1bb3f9cf959bb06a6a1c1505a54 (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
# Maintainer:  Chris Severance aur.severach aATt spamgourmet dott com
# Contributor: zxalexis <zxalexis@gmail.com>

set -u
pkgname='wipefreespace'
pkgver=2.2
pkgrel=1
pkgdesc='Securely wipe the free space on an ext2/3/4,NTFS, XFS,ReiserFSv3, ReiserFSv4, FAT12/16/32,Minix,JFS and HFS+ partition or drive'
arch=('i686' 'x86_64')
url='https://wipefreespace.sourceforge.net/'
license=('GPL')
_verwatch=('https://sourceforge.net/projects/wipefreespace/rss' ".*<title>.*/${pkgname}-\([0-9\.]\+\)\.tar\.gz\].*" 'f')
source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
sha256sums=('676c1de1c06a1da43ac8cb5b4bb2082867cef29a0377a3a74d889b4e0459eb61')

prepare() {
  set -u
  cd "${pkgbase}-${pkgver}"
  CFLAGS="${CFLAGS} -Wno-unused-result" \
  ./configure --prefix='/usr'
  echo '#define HAVE_LINUX_LOOP_H 1' >> 'config.h'
  set +u
}

build() {
  set -u
  cd "${pkgbase}-${pkgver}"
  local _nproc="$(nproc)"; _nproc=$((_nproc>8?8:_nproc))
  make -s -j "${_nproc}"
  set +u
}

package () {
  set -u
  cd "${pkgbase}-${pkgver}"
  make DESTDIR="${pkgdir}" install
  set +u
}
set +u
# vim:set ts=2 sw=2 et: