summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 435e4adb81a417355dfeeb581b76b238ab266f20 (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
# $Id: $
# Maintainer:
# Contributor: 

pkgname=reiserfs-defrag
pkgver=0.2.2
pkgrel=2
pkgdesc="Offline defragmenter for reiserfs. Experimental. Do not use it on sensitive data."
arch=('i686' 'x86_64')
url="https://github.com/i-rinat/reiserfs-defrag"
license=('GPL')
depends=('gcc-libs')
makedepends=('cmake')
#source=(https://github.com/downloads/i-rinat/reiserfs-defrag/${pkgname}-v${pkgver}.tar.xz)
source=(${pkgname}-${pkgver}.tar.gz::https://github.com/i-rinat/${pkgname}/archive/v${pkgver}.tar.gz)
sha256sums=('28fc7fe7373fab0e90f74acaf2fbfcf2578f7b04eeadcecb50f88bee2b67e718')

build() {
  cd ${srcdir}/${pkgname}-${pkgver}
  mkdir build && cd build
  cmake -DCMAKE_BUILD_TYPE=Release .. -DCMAKE_INSTALL_PREFIX=/usr -DSBINDIR=/usr/bin
  make
}

package() {
  cd ${srcdir}/${pkgname}-${pkgver}/build
  make install DESTDIR="${pkgdir}"
}