X-Original-To: alpine-aports@lists.alpinelinux.org Received: from 7of9.schinagl.nl (7of9.schinagl.nl [62.251.20.244]) by lists.alpinelinux.org (Postfix) with ESMTP id 887C1F831A4 for ; Fri, 22 Feb 2019 15:56:07 +0000 (UTC) Received: from 3of9.wifi.ns.nl (unknown [145.15.244.34]) by 7of9.schinagl.nl (Postfix) with ESMTPA id 39162B4948C; Fri, 22 Feb 2019 16:56:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=schinagl.nl; s=7of9; t=1550850967; bh=XNn+ztuX5as4pDheqfAS12bMnVnBG3tFGn+17KAk5WM=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=ctjgpFp3LSLIiNBnZ1CPBhHOpMUKjXoZM/g1ilJh9aOZe92aXUw509CsV5qXrIaYo 4AilLWbWVeHgsnY1aYr/hqOCYo24Y0JCkSO0tGtKzoLd13wv5M9Ewf0j817LOfRem4 fKlYVUT2qDH5iIpWznuQC4vswwO8QIiX1k/RMKTs= From: Olliver Schinagl To: alpine-aports@lists.alpinelinux.org Cc: Olliver Schinagl Subject: [alpine-aports] [PATCH 2/2] community/mmc-utils: new aport Date: Fri, 22 Feb 2019 16:56:02 +0100 Message-Id: <20190222155602.10401-2-oliver@schinagl.nl> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190222155602.10401-1-oliver@schinagl.nl> References: <20190222155602.10401-1-oliver@schinagl.nl> X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Signed-off-by: Olliver Schinagl --- community/mmc-utils/APKBUILD | 60 ++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 community/mmc-utils/APKBUILD diff --git a/community/mmc-utils/APKBUILD b/community/mmc-utils/APKBUILD new file mode 100644 index 0000000000..5dd797d0d3 --- /dev/null +++ b/community/mmc-utils/APKBUILD @@ -0,0 +1,60 @@ +# Contributor: Olliver Schinagl +# Maintainer: Olliver Schinagl +pkgname=mmc-utils +pkgver=0_git20190221 +pkgrel=0 +pkgdesc="Configure MMC storage devices from userspace." +url="http://pyropus.ca/software/memtester/" +arch="all" +license="GPL-2.0" +depends="" +makedepends="linux-headers" +options="!check" # No checks available +subpackages="${pkgname}-doc" +source="https://dev.alpinelinux.org/archive/mmc-utils/mmc-utils-${pkgver}.tar.gz" +_giturl="https://git.kernel.org/pub/scm/linux/kernel/git/cjb/mmc-utils.git" +builddir="${srcdir}/mmc-utils" + +build() +{ + cd "${builddir}" + make +} + +snapshot() +{ + _pkgver="0_git$(date +%Y%m%d)" + abuild clean + abuild deps + + mkdir -p "${srcdir}" + cd "${srcdir}" + + msg "Grabbing the latest snapshot" + git clone --depth=1 -q "${_giturl}" + + msg "Creating snapshot: ${pkgname}-${_pkgver}" + tar -czf "${pkgname}-${_pkgver}.tar.gz" "mmc-utils" + + ssh distfiles.alpinelinux.org \ + "mkdir -p archive/${pkgname}/" + scp "${srcdir}/${pkgname}-${_pkgver}.tar.gz" \ + "dev.alpinelinux.org:/archive/${pkgname}" + + sed -i -e "s/^pkgver=.*/pkgver=${_pkgver}/" \ + "${startdir}/APKBUILD" + sed -i -e "s/^pkgrel=.*/pkgrel=0/" \ + "${startdir}/APKBUILD" + + cd "${startdir}" + abuild checksum +} + +package() +{ + cd "${builddir}" + make DESTDIR="${pkgdir}" prefix="/usr" install install-man + gzip -c "${builddir}/man/mmc.1" > "mmc.1.gz" && \ + install -D -m 644 "mmc.1.gz" "${pkgdir}/usr/share/man/man1/mmc.1.gz" +} + -- 2.20.1 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---