summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2c555154df0f5e2975d09b979fe8b4b015be5aa6 (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
# Maintainer: Ivan Shapovalov <intelfx@intelfx.name>
# Contributor: Baptiste Jonglez <baptiste--aur at jonglez dot org>
pkgname=bdsync
pkgver=0.11.3
pkgrel=1
pkgdesc="Fast block device synchronizing tool"
arch=("i686" "x86_64")
url="https://github.com/rolffokkens/bdsync"
license=('GPL')
depends=("openssl")
makedepends=("git" "pandoc")
source=("git+https://github.com/rolffokkens/$pkgname#tag=v${pkgver}")
sha256sums=('SKIP')


prepare() {
  cd "$pkgname"
  sed -i -r 's|^CFLAGS=(.*)|CFLAGS:=\1 $(CFLAGS)|' Makefile
  sed -i -r 's|$\(CRYPTO_LDFLAGS\)$|\0 $(LDFLAGS)|' Makefile
}

build() {
  cd "$pkgname"

  CFLAGS="${CFLAGS//-O2/-O3}"
  make
}

package() {
  cd "$pkgname"
  install -D -m755 bdsync "$pkgdir/usr/bin/bdsync"
  install -D -m644 bdsync.1 "$pkgdir/usr/share/man/man1/bdsync.1"
}

# vim:set ts=2 sw=2 et: