diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2015-05-22 05:54:33 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2015-05-22 05:54:33 -0300 |
commit | 4774a572775b8c44d86bd8696d17d2205a473ac5 (patch) | |
tree | 4b17743b5e17e171eda55359ed5737da589b6ed9 /pcr/snapraid | |
parent | 3cc4685abd608cb86ac3beca4501a77e00c6d5be (diff) | |
parent | 1a4554480341083f8a1240431c12ebe267843ecd (diff) | |
download | abslibre-4774a572775b8c44d86bd8696d17d2205a473ac5.tar.gz abslibre-4774a572775b8c44d86bd8696d17d2205a473ac5.tar.bz2 abslibre-4774a572775b8c44d86bd8696d17d2205a473ac5.zip |
Merge branch 'master' of ssh://projects.parabola.nu/~git/abslibre
Diffstat (limited to 'pcr/snapraid')
-rw-r--r-- | pcr/snapraid/PKGBUILD | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/pcr/snapraid/PKGBUILD b/pcr/snapraid/PKGBUILD new file mode 100644 index 000000000..cf4ce0abf --- /dev/null +++ b/pcr/snapraid/PKGBUILD @@ -0,0 +1,47 @@ +# Maintainer (Arch): John Williams <jwilliams4200 liamg reverse&remove moc> +# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe> +pkgname=snapraid +pkgver=8.1 +pkgrel=1 +pkgdesc="tool for Snapshot RAID: generate parity files, maintain checksums on data, restore lost data" +arch=('x86_64' 'i686') +url="http://snapraid.sourceforge.net/" +license=('GPL3') +depends=('openssl') +conflicts=('snapraid-git') +source=("http://sourceforge.net/projects/snapraid/files/snapraid-${pkgver}.tar.gz") +sha256sums=('6bf89a1319ac3403958cd2c98a9c6102728c0070cfa1aedd90c4561d93c54e5d') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + + # patch to not print excluded files and directories + # printf("Excluding file '%s'\n", path_next); + #sed -i -r -e '/printf\("Excluding file '\''%s'\''\\n", path_next\);/d' scan.c + # printf("Excluding directory '%s'\n", path_next); + #sed -i -r -e '/printf\("Excluding directory '\''%s'\''\\n", path_next\);/d' scan.c + + ./configure --prefix="/usr" + make +} + +check() { + cd "${srcdir}/${pkgname}-${pkgver}" + make check || return 1 +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}/" prefix="/usr" mandir="/usr/share/man" install + + # documentation + install -D -m644 snapraid.conf.example ${pkgdir}/usr/share/${pkgname}/snapraid.conf.example + install -D -m644 AUTHORS ${pkgdir}/usr/share/doc/${pkgname}/AUTHORS + install -D -m644 COPYING ${pkgdir}/usr/share/doc/${pkgname}/COPYING + install -D -m644 HISTORY ${pkgdir}/usr/share/doc/${pkgname}/HISTORY + install -D -m644 INSTALL ${pkgdir}/usr/share/doc/${pkgname}/INSTALL + install -D -m644 README ${pkgdir}/usr/share/doc/${pkgname}/README + install -D -m644 CHECK ${pkgdir}/usr/share/doc/${pkgname}/CHECK + install -D -m644 TODO ${pkgdir}/usr/share/doc/${pkgname}/TODO +} + |