blob: 73e315886abd180f6fcb3541d69b5b2f440ac4ff (
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
|
# Maintainer: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com
pkgname=bsdiff
pkgver=4.3
pkgrel=1
pkgdesc="bsdiff and bspatch are tools for building and applying patches to binary files"
arch=(i686 x86_64)
url="https://www.daemonology.net/bsdiff/"
license=(custom)
depends=(glibc bzip2)
makedepends=(patch)
source=("https://ftp.desolve.ru/pub/bsdiff/${pkgname}-${pkgver}.tar.gz"
"CVE-2014-9862.patch")
sha256sums=('18821588b2dc5bf159aa37d3bcb7b885d85ffd1e19f23a0c57a58723fea85f48'
'3f50f832eff04a00d59bd7fe19fd743b5639ea7cc78822329a77604f28e24102')
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
patch -Np0 -i "${srcdir}/CVE-2014-9862.patch"
}
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
cc ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -o bsdiff bsdiff.c -O3 -lbz2
cc ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -o bspatch bspatch.c -O3 -lbz2
}
package() {
install -Dm755 "${srcdir}/${pkgname}-${pkgver}/bsdiff" "${pkgdir}/usr/bin/bsdiff"
install -Dm755 "${srcdir}/${pkgname}-${pkgver}/bspatch" "${pkgdir}/usr/bin/bspatch"
install -Dm644 "${srcdir}/${pkgname}-${pkgver}/bsdiff.1" "${pkgdir}/usr/share/man/man1/bsdiff.1"
install -Dm644 "${srcdir}/${pkgname}-${pkgver}/bspatch.1" "${pkgdir}/usr/share/man/man1/bspatch.1"
}
|