aboutsummaryrefslogtreecommitdiffstats
path: root/community/mtd-utils/APKBUILD
diff options
context:
space:
mode:
authorKevin Daudt <kdaudt@alpinelinux.org>2019-04-19 20:49:31 +0000
committerKevin Daudt <kdaudt@alpinelinux.org>2019-04-19 20:59:00 +0000
commit57d39405ad7442dd1d9579b5a2bcc78dbf6f0330 (patch)
treecd006c86f8c7cf14344a72c13482085efd61ddde /community/mtd-utils/APKBUILD
parentfff74d81199e72bb8f4d95c14df42b3e7b3571c5 (diff)
downloadaports-57d39405ad7442dd1d9579b5a2bcc78dbf6f0330.tar.bz2
aports-57d39405ad7442dd1d9579b5a2bcc78dbf6f0330.tar.xz
community/mtd-utils: adhere to aports code style
- No braces in variables when not required - Opening brace of function definition on the same line - Close quote of multiline string on the same column as data
Diffstat (limited to 'community/mtd-utils/APKBUILD')
-rw-r--r--community/mtd-utils/APKBUILD97
1 files changed, 44 insertions, 53 deletions
diff --git a/community/mtd-utils/APKBUILD b/community/mtd-utils/APKBUILD
index 822019d1c1..36396d1887 100644
--- a/community/mtd-utils/APKBUILD
+++ b/community/mtd-utils/APKBUILD
@@ -17,113 +17,104 @@ makedepends="
openssl-dev
util-linux-dev
zlib-dev
-"
+ "
_subpackages="
- ${pkgname}-flash::all
- ${pkgname}-jffs::all
- ${pkgname}-misc::all
- ${pkgname}-nand::all
- ${pkgname}-nor::all
- ${pkgname}-ubi::all
-"
-subpackages="${pkgname}-doc ${_subpackages}"
+ $pkgname-flash::all
+ $pkgname-jffs::all
+ $pkgname-misc::all
+ $pkgname-nand::all
+ $pkgname-nor::all
+ $pkgname-ubi::all
+ "
+subpackages="$pkgname-doc $_subpackages"
_githash="1dba7944fe18978415a3ffc43932359a36b99b25"
source="
- ${pkgname}-${pkgver}.tar.gz::http://git.infradead.org/mtd-utils.git/snapshot/${_githash}.tar.gz
+ $pkgname-$pkgver.tar.gz::http://git.infradead.org/mtd-utils.git/snapshot/$_githash.tar.gz
0001-unittests-test_lib-Include-proper-header-for-_IOC_SI.patch
0002-unittests-libmtd_test-Include-fcntl-header.patch
0003-unittests-Define-the-use-of-_GNU_SOURCE.patch
-"
-builddir="${srcdir}/${pkgname}-$(echo "${_githash}" | cut -c1-7)"
+ "
+builddir="$srcdir/$pkgname-$(echo "$_githash" | cut -c1-7)"
-build()
-{
+build() {
./autogen.sh
./configure \
- --build="${CBUILD}" \
+ --build="$CBUILD" \
--enable-tests \
--enable-unit-tests \
- --host="${CHOST}" \
+ --host="$CHOST" \
--mandir="/usr/share/man" \
--prefix="/usr" \
--sysconfdir="/etc"
make
}
-check()
-{
+check() {
make check
}
-flash()
-{
+flash() {
pkgdesc="MTD utils (flash commands)"
- mkdir -p "${subpkgdir}/usr/sbin"
- find "${pkgdir}/usr/sbin/" -type f \( \
+ mkdir -p "$subpkgdir/usr/sbin"
+ find "$pkgdir/usr/sbin/" -type f \( \
-iname '*flash*' \)\
- -exec mv "{}" "${subpkgdir}/usr/sbin/" +
+ -exec mv "{}" "$subpkgdir/usr/sbin/" +
}
-jffs()
-{
+jffs() {
pkgdesc="MTD utils (JFFS* commands)"
- echo "${subpkgdir}"
- mkdir -p "${subpkgdir}/usr/sbin"
- find "${pkgdir}/usr/sbin/" -type f \(\
+ echo "$subpkgdir"
+ mkdir -p "$subpkgdir/usr/sbin"
+ find "$pkgdir/usr/sbin/" -type f \(\
-iname '*jffs*' -o -iname 'sumtool' \)\
- -exec mv "{}" "${subpkgdir}/usr/sbin/" +
+ -exec mv "{}" "$subpkgdir/usr/sbin/" +
}
-misc()
-{
+misc() {
pkgdesc="MTD utils (miscellaneous commands)"
- mkdir -p "${subpkgdir}/usr/sbin"
- find "${pkgdir}/usr/sbin/" -type f \(\
+ mkdir -p "$subpkgdir/usr/sbin"
+ find "$pkgdir/usr/sbin/" -type f \(\
-iname '*doc*' -o -iname 'ftl*' -o \
-iname 'mtdpart' -o -iname 'mtd_debug' -o \
-iname 'recv_image' -o -iname 'serve_image' \)\
- -exec mv "{}" "${subpkgdir}/usr/sbin/" +
+ -exec mv "{}" "$subpkgdir/usr/sbin/" +
}
-nand()
-{
+nand() {
pkgdesc="MTD utils (NAND and FTL commands)"
- mkdir -p "${subpkgdir}/usr/sbin"
- find "${pkgdir}/usr/sbin/" -type f \(\
+ mkdir -p "$subpkgdir/usr/sbin"
+ find "$pkgdir/usr/sbin/" -type f \(\
-iname 'nand*' -o -iname 'nftl*' \)\
- -exec mv "{}" "${subpkgdir}/usr/sbin/" +
+ -exec mv "{}" "$subpkgdir/usr/sbin/" +
}
-nor()
-{
+nor() {
pkgdesc="MTD utils (NOR flash commands)"
- mkdir -p "${subpkgdir}/usr/sbin"
- find "${pkgdir}/usr/sbin/" -type f \(\
+ mkdir -p "$subpkgdir/usr/sbin"
+ find "$pkgdir/usr/sbin/" -type f \(\
-iname '*nor*' -o -iname 'rfd*' \)\
- -exec mv "{}" "${subpkgdir}/usr/sbin/" +
+ -exec mv "{}" "$subpkgdir/usr/sbin/" +
}
-ubi()
-{
+ubi() {
pkgdesc="MTD utils (UBI and UBIFS commands)"
- mkdir -p "${subpkgdir}/usr/sbin"
- find "${pkgdir}/usr/sbin/" -type f \(\
+ mkdir -p "$subpkgdir/usr/sbin"
+ find "$pkgdir/usr/sbin/" -type f \(\
-iname '*ubi*' -o \
-iname 'lsmtd' -o -iname 'mtdinfo' \)\
- -exec mv "{}" "${subpkgdir}/usr/sbin/" +
+ -exec mv "{}" "$subpkgdir/usr/sbin/" +
}
-package()
-{
- depends="${_subpackages}"
+package() {
+ depends="$_subpackages"
- make DESTDIR="${pkgdir}" install
+ make DESTDIR="$pkgdir" install
}
sha512sums="bb64b6cbdaee3c731ed1dc136064507fbfffe8a45879b0c4024a2b46d320875252f42af8dc268b30247ebb81a7a89b951e19a896bb415de38877c45b031e1081 mtd-utils-2.1.0.tar.gz