mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
added alarm/android-tools-fsutils
This commit is contained in:
parent
bd5b74f7ad
commit
f36d8b5b79
2 changed files with 84 additions and 0 deletions
55
alarm/android-tools-fsutils/Makefile
Normal file
55
alarm/android-tools-fsutils/Makefile
Normal file
|
@ -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)
|
29
alarm/android-tools-fsutils/PKGBUILD
Normal file
29
alarm/android-tools-fsutils/PKGBUILD
Normal file
|
@ -0,0 +1,29 @@
|
|||
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||
# Contributor: Anatol Pomozov
|
||||
# Contributor: 謝致邦 <Yeking@Red54.com>
|
||||
# Contributor: Alucryd <alucryd at gmail dot com>
|
||||
|
||||
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
|
||||
}
|
Loading…
Reference in a new issue