summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorfelics@felics-tablet2016-05-20 22:45:26 +0200
committerfelics@felics-tablet2016-05-20 22:45:26 +0200
commit209f2961d8e166e34aa807338ed5285a1b837598 (patch)
treec0fc21f2aeb4a88db53d82ff80017208d3e9f1c0
downloadaur-209f2961d8e166e34aa807338ed5285a1b837598.tar.gz
Initial commit.
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD94
2 files changed, 114 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..fa8f2eed740
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = bdelta-git
+ pkgdesc = A tool to create diffs of binary files. A sophisticated sequence matching library bundled with a delta creator and patch tool.
+ pkgver = 0.3.1.d20130130.rg53e49e1
+ pkgrel = 1
+ url = https://github.com/jjwhitney/BDelta
+ arch = i686
+ arch = x86_64
+ arch = arm
+ license = MPL
+ makedepends = git
+ makedepends = python2
+ provides = bdelta=0.3.1.d20130130.rg53e49e1
+ conflicts = bdelta
+ source = bdelta::git+https://github.com/jjwhitney/BDelta.git
+ source = fefe-filesize-patch.patch::https://ptrace.fefe.de/bdelta.diff
+ sha256sums = SKIP
+ sha256sums = 4e44a523b1c960c0ae428b822d700ca9610fe75a45c26e06679204a9cf19ea9c
+
+pkgname = bdelta-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..7033f9bd64a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,94 @@
+# Maintainer: dreieck
+
+_pkgname='bdelta'
+pkgname="${_pkgname}-git"
+pkgver=0.3.1.d20130130.rg53e49e1
+pkgrel=1
+pkgdesc="A tool to create diffs of binary files. A sophisticated sequence matching library bundled with a delta creator and patch tool."
+url='https://github.com/jjwhitney/BDelta'
+arch=('i686' 'x86_64' 'arm')
+license=(MPL)
+
+depends=(
+)
+
+makedepends=(
+ "git"
+ "python2"
+)
+
+optdepends=(
+)
+
+provides=(
+ "${_pkgname}=${pkgver}"
+)
+
+replaces=(
+)
+
+conflicts=(
+ "${_pkgname}"
+)
+
+
+_giturl="https://github.com/jjwhitney/BDelta.git"
+
+source=(
+ "${_pkgname}::git+${_giturl}"
+ "fefe-filesize-patch.patch::https://ptrace.fefe.de/bdelta.diff"
+)
+
+sha256sums=(
+ 'SKIP'
+ "4e44a523b1c960c0ae428b822d700ca9610fe75a45c26e06679204a9cf19ea9c"
+)
+
+pkgver() {
+ _unpackeddir="${srcdir}/${_pkgname}"
+ cd "${_unpackeddir}"
+
+ _ver="$(python2 version.py)"
+ _rev="$(git describe --long | cut -d- -f3)"
+ _date="$(git log -n 1 --pretty=format:%ci | cut -d' ' -f1 | tr -d '-')"
+
+ if [ -z "${_ver}" ]; then
+ echo "$0: Error: Could not determine version." > /dev/stderr
+ false
+ return 1
+ fi
+
+ if [ -z "${_rev}" ]; then
+ echo "$0: Error: Could not determine revision." > /dev/stderr
+ false
+ return 1
+ fi
+
+ echo "${_ver}.d${_date}.r${_rev}"
+}
+
+prepare() {
+ _unpackeddir="${srcdir}/${_pkgname}"
+ cd "${_unpackeddir}"
+
+ for _patch in "${srcdir}"/*.patch; do
+ echo "Applying patch '${_patch}' ..."
+ patch -p1 < "${_patch}"
+ done
+}
+
+build() {
+ _unpackeddir="${srcdir}/${_pkgname}"
+ cd "${_unpackeddir}"
+ cd src
+
+ make
+}
+
+package() {
+ _unpackeddir="${srcdir}/${_pkgname}"
+ cd "${_unpackeddir}"
+ cd src
+
+ make DESTDIR="${pkgdir}" install
+}