summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 420afece3bfd06aa936613ee71fef4e0b0753317 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Maintainer: Peter Hoeg <first name at last name dot com>

pkgname=defragfs
pkgver=1.1.1
pkgrel=1
pkgdesc="A user space file defragger"
arch=("any")
url="http://sourceforge.net/projects/${pkgname}"
license=('GPL')
depends=('perl')
source=("${pkgname}-${pkgver}.gz::https://sourceforge.net/projects/${pkgname}/files/${pkgname}/${pkgname}-1.1/${pkgname}-${pkgver}.gz/download")
sha1sums=('0e248e5dfc74ba3ec3e73f473df248c2c219686d')

package() {
  cd "$srcdir/"

  install -m755 -d "$pkgdir/usr/bin"
  install -m755    ${pkgname}-${pkgver} "$pkgdir/usr/bin/${pkgname}"

  install -m755 -d "$pkgdir/usr/share/doc/${pkgname}"
  perl ${pkgname}-${pkgver} . -h 2>&1 | fmt --width=72 > "$pkgdir/usr/share/doc/${pkgname}/README"
}