summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-10-17 17:57:19 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-10-17 18:04:59 -0300
commit0e8b2d0e0155e4a0b4ea020e76a4336b577c9123 (patch)
treecfcfd315e380b07d26e518dd58abf1577f2d1c26
parent62a949ef19213c2641d10758e4072fce7e8e63b6 (diff)
downloadabslibre-0e8b2d0e0155e4a0b4ea020e76a4336b577c9123.tar.gz
abslibre-0e8b2d0e0155e4a0b4ea020e76a4336b577c9123.tar.bz2
abslibre-0e8b2d0e0155e4a0b4ea020e76a4336b577c9123.zip
simg2img-git: add new package to [pcr]
-rw-r--r--pcr/simg2img-git/PKGBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/pcr/simg2img-git/PKGBUILD b/pcr/simg2img-git/PKGBUILD
new file mode 100644
index 000000000..866a49e36
--- /dev/null
+++ b/pcr/simg2img-git/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer (Arch): Christoph Scholz <christoph.scholz@gmail.com>
+
+pkgname=simg2img-git
+pkgver=r24165.6da1ea0
+pkgrel=1
+pkgdesc="Tools to handle/convert Android sparse image file"
+arch=('i686' 'x86_64')
+url="https://android.googlesource.com/platform/system/core"
+license=('Apache')
+depends=('zlib')
+makedepends=('git')
+source=("git+https://android.googlesource.com/platform/system/core")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "${srcdir}/core/libsparse"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "${srcdir}/core/libsparse"
+ gcc -o simg2img -Iinclude simg2img.c sparse_crc32.c backed_block.c output_file.c sparse.c sparse_err.c sparse_read.c -lz
+ gcc -o append2simg -Iinclude append2simg.c sparse_crc32.c backed_block.c output_file.c sparse.c sparse_err.c sparse_read.c -lz
+ gcc -o img2simg -Iinclude img2simg.c sparse_crc32.c backed_block.c output_file.c sparse.c sparse_err.c sparse_read.c -lz
+ gcc -o simg2simg -Iinclude simg2simg.c sparse_crc32.c backed_block.c output_file.c sparse.c sparse_err.c sparse_read.c -lz
+}
+
+package() {
+ cd "${srcdir}/core/libsparse"
+ install -D -m 755 -t "${pkgdir}/usr/bin/" simg2img append2simg img2simg simg2simg
+}