From f36d8b5b794871723f71039b6784af549e644a78 Mon Sep 17 00:00:00 2001 From: Kevin Mihelich Date: Wed, 21 Oct 2015 01:40:54 +0000 Subject: [PATCH] added alarm/android-tools-fsutils --- alarm/android-tools-fsutils/Makefile | 55 ++++++++++++++++++++++++++++ alarm/android-tools-fsutils/PKGBUILD | 29 +++++++++++++++ 2 files changed, 84 insertions(+) create mode 100644 alarm/android-tools-fsutils/Makefile create mode 100644 alarm/android-tools-fsutils/PKGBUILD diff --git a/alarm/android-tools-fsutils/Makefile b/alarm/android-tools-fsutils/Makefile new file mode 100644 index 000000000..8a15c2dfc --- /dev/null +++ b/alarm/android-tools-fsutils/Makefile @@ -0,0 +1,55 @@ +all: simg2img make_ext4fs + +install: + install -m755 -d $(DESTDIR)/usr/bin + install -m755 -t $(DESTDIR)/usr/bin simg2img make_ext4fs + +clean: + rm -f **/*.o + +.PHONY: clean + +SIMG2IMG_SRCS += core/libsparse/simg2img.c +SIMG2IMG_SRCS += core/libsparse/backed_block.c +SIMG2IMG_SRCS += core/libsparse/output_file.c +SIMG2IMG_SRCS += core/libsparse/sparse.c +SIMG2IMG_SRCS += core/libsparse/sparse_crc32.c +SIMG2IMG_SRCS += core/libsparse/sparse_err.c +SIMG2IMG_SRCS += core/libsparse/sparse_read.c + +SIMG2IMG_CFLAGS += -DHAVE_OFF64_T=1 -std=gnu99 -I core/libsparse/include +SIMG2IMG_LIBS += -lz + +simg2img: $(SIMG2IMG_SRCS) + $(CC) -o $@ $(CFLAGS) $(SIMG2IMG_CFLAGS) $(LDFLAGS) $(SIMG2IMG_SRCS) $(SIMG2IMG_LIBS) + +MAKE_EXT4FS_SRCS += extras/ext4_utils/make_ext4fs_main.c +MAKE_EXT4FS_SRCS += extras/ext4_utils/make_ext4fs.c +MAKE_EXT4FS_SRCS += extras/ext4_utils/ext4fixup.c +MAKE_EXT4FS_SRCS += extras/ext4_utils/ext4_utils.c +MAKE_EXT4FS_SRCS += extras/ext4_utils/allocate.c +MAKE_EXT4FS_SRCS += extras/ext4_utils/contents.c +MAKE_EXT4FS_SRCS += extras/ext4_utils/extent.c +MAKE_EXT4FS_SRCS += extras/ext4_utils/indirect.c +MAKE_EXT4FS_SRCS += extras/ext4_utils/uuid.c +MAKE_EXT4FS_SRCS += extras/ext4_utils/sha1.c +MAKE_EXT4FS_SRCS += extras/ext4_utils/wipe.c +MAKE_EXT4FS_SRCS += core/libsparse/backed_block.c +MAKE_EXT4FS_SRCS += core/libsparse/output_file.c +MAKE_EXT4FS_SRCS += core/libsparse/sparse.c +MAKE_EXT4FS_SRCS += core/libsparse/sparse_crc32.c +MAKE_EXT4FS_SRCS += core/libsparse/sparse_err.c +MAKE_EXT4FS_SRCS += core/libsparse/sparse_read.c +MAKE_EXT4FS_SRCS += libselinux/src/callbacks.c +MAKE_EXT4FS_SRCS += libselinux/src/check_context.c +MAKE_EXT4FS_SRCS += libselinux/src/freecon.c +MAKE_EXT4FS_SRCS += libselinux/src/init.c +MAKE_EXT4FS_SRCS += libselinux/src/label.c +MAKE_EXT4FS_SRCS += libselinux/src/label_android_property.c +MAKE_EXT4FS_SRCS += libselinux/src/label_file.c + +MAKE_EXT4FS_CFLAGS += -DHAVE_OFF64_T=1 -std=gnu99 -I core/libsparse/include -I libselinux/include -I core/include -I extras/ext4_utils +MAKE_EXT4FS_LIBS += -lz + +make_ext4fs: $(MAKE_EXT4FS_SRCS) + $(CC) -o $@ $(CFLAGS) $(MAKE_EXT4FS_CFLAGS) $(LDFLAGS) $(MAKE_EXT4FS_SRCS) $(MAKE_EXT4FS_LIBS) diff --git a/alarm/android-tools-fsutils/PKGBUILD b/alarm/android-tools-fsutils/PKGBUILD new file mode 100644 index 000000000..0fe696f4c --- /dev/null +++ b/alarm/android-tools-fsutils/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: Kevin Mihelich +# Contributor: Anatol Pomozov +# Contributor: 謝致邦 +# Contributor: Alucryd + +pkgname=android-tools-fsutils +pkgver=4.2.2_r1.2 +pkgrel=1 +pkgdesc='Android platform filesystem tools' +arch=(i686 x86_64) +url='http://tools.android.com/' +license=(Apache MIT) +makedepends=(git) +source=(git+https://android.googlesource.com/platform/system/core#tag=android-$pkgver + git+https://android.googlesource.com/platform/system/extras#tag=android-$pkgver + git+https://android.googlesource.com/platform/external/libselinux#tag=android-$pkgver + Makefile) +sha1sums=('SKIP' + 'SKIP' + 'SKIP' + 'c08c0f2a09d2cb306bdf840016812954b868b525') + +build() { + make +} + +package(){ + make DESTDIR="$pkgdir" install +}