aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominique Martinet <dominique.martinet@atmark-techno.com>2021-02-03 12:45:27 +0900
committerMilan P. Stanić <mps@arvanta.net>2021-02-03 15:33:49 +0000
commite36769558404111c89e75c161dd52d816218250c (patch)
tree473a5a0eb7b6904480263485f4a6761d88f0ee90
parenteea554fb32096659c01af1efcf923f5280db0fb8 (diff)
downloadaports-e36769558404111c89e75c161dd52d816218250c.tar.gz
aports-e36769558404111c89e75c161dd52d816218250c.tar.bz2
aports-e36769558404111c89e75c161dd52d816218250c.tar.xz
mtd-utils: add mtd-utils-dev subpackage
mtd-utils does not automatically install its headers/lib, but some projects like swupdate need them. Generate a new mtd-utils-dev package with these like debian does
-rw-r--r--main/mtd-utils/APKBUILD11
1 files changed, 10 insertions, 1 deletions
diff --git a/main/mtd-utils/APKBUILD b/main/mtd-utils/APKBUILD
index 75fed92e3e..56210a85aa 100644
--- a/main/mtd-utils/APKBUILD
+++ b/main/mtd-utils/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Olliver Schinagl <oliver@schinagl.nl>
pkgname=mtd-utils
pkgver=2.1.2
-pkgrel=0
+pkgrel=1
pkgdesc="Utilities for handling MTD devices, and for dealing with FTL, NFTL JFFS2, etc."
options="!check" # Tests fail on builder
url="http://www.linux-mtd.infradead.org/"
@@ -29,6 +29,7 @@ _subpackages="
$pkgname-nand
$pkgname-nor
$pkgname-ubi
+ $pkgname-dev
"
subpackages="$pkgname-doc $_subpackages"
source="ftp://ftp.infradead.org/pub/mtd-utils/mtd-utils-$pkgver.tar.bz2
@@ -56,6 +57,14 @@ check() {
make check || _cat_found_file 'test-suite.log'
}
+dev() {
+ mkdir -p "$subpkgdir/usr/include" "$subpkgdir/usr/lib"
+ cd "$builddir/include"
+ mv libmtd.h libscan.h libubi.h libubigen.h "$subpkgdir/usr/include/"
+ cd $builddir
+ mv libmtd.a libscan.a libubi.a libubigen.a "$subpkgdir/usr/lib/"
+}
+
flash() {
pkgdesc="MTD utils (flash commands)"