aboutsummaryrefslogtreecommitdiffstats
path: root/community/rpm2cpio/APKBUILD
blob: f3e8fdda785f5538cb81ae686576eac4199774f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Contributor: TBK <alpine@jjtc.eu>
# Maintainer: TBK <alpine@jjtc.eu>
pkgname=rpm2cpio
pkgver=1.4
pkgrel=1
pkgdesc="Convert .rpm files to cpio format"
url="https://www.freshports.org/archivers/rpm2cpio/"
arch="noarch"
license="BSD-2-Clause"
depends="libarchive-tools"
checkdepends="cpio curl"
source="rpm2cpio.sh"

check() {
	echo "Getting bookmarks.rpm:"
	curl -#o bookmarks.rpm http://mirror.centos.org/centos/7/os/x86_64/Packages/centos-bookmarks-7-1.el7.noarch.rpm
	echo "Testing cpio extraction:"
	sh rpm2cpio.sh bookmarks.rpm > bookmarks.cpio || exit 1
	cpio -it < bookmarks.cpio || exit 1
}

package() {
	install -Dm755 rpm2cpio.sh "$pkgdir"/usr/bin/rpm2cpio
}

sha512sums="8d8394ad0673d1f30738f8d7c6c90dc1584a79dd3b91e97c17324741fa16ab65990983eb68398d7011bcb74ddb795e442520637cf436030c5aeaf5f148a9a1ba  rpm2cpio.sh"