diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-03-27 11:48:58 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-03-27 11:48:58 +0000 |
commit | bd9be99e2b2d4ae1a975ad629ba9451e0e729653 (patch) | |
tree | 65b90e0f6005db370f5eff6e4f8406ecc6ef549d /community | |
parent | c613c8e36613409403ced3fa43e4b463e9a3221b (diff) | |
download | aports-bd9be99e2b2d4ae1a975ad629ba9451e0e729653.tar.bz2 aports-bd9be99e2b2d4ae1a975ad629ba9451e0e729653.tar.xz |
community/py-rtslib: modernize APKBUILD
Diffstat (limited to 'community')
-rw-r--r-- | community/py-rtslib/APKBUILD | 43 |
1 files changed, 8 insertions, 35 deletions
diff --git a/community/py-rtslib/APKBUILD b/community/py-rtslib/APKBUILD index bf90f9967f..512d63ab37 100644 --- a/community/py-rtslib/APKBUILD +++ b/community/py-rtslib/APKBUILD @@ -5,56 +5,29 @@ _realname=rtslib-fb pkgver=2.1_p63 _ver=${pkgver/_rc/rc} _ver=${_ver/_p/.fb} -pkgrel=0 +pkgrel=1 pkgdesc="Python library that provides an object API to RisingTide Systems generic SCSI Target" -url="https://github.com/agrover/rtslib-fb" +url="https://github.com/open-iscsi/rtslib-fb" arch="noarch" license="AGPLv3" depends="python2" -depends_dev="" makedepends="$depends_dev py-setuptools py-configobj py-ethtool py-ipaddr" -install="" -subpackages= source="https://github.com/open-iscsi/rtslib-fb/archive/v${_ver}.tar.gz" - -_giturl="https://github.com/agrover/rtslib-fb.git" -_gittag=v$_ver - -_builddir="$srcdir"/${_realname}-${_ver} - -snapshot() { - mkdir -p "$srcdir" - cd "${SRCDEST:-$srcdir}" - if ! [ -d $_realname-fb.git ]; then - git clone --bare $_giturl || return 1 - cd $_realname-fb.git - else - cd $_realname-fb.git - git fetch || return 1 - fi - - git archive --prefix=$_realname/ -o "$SRCDEST"/$_realname-$_ver.tar.gz $_gittag - scp "$SRCDEST"/$_realname-$_ver.tar.gz dev.alpinelinux.org:/archive/$_realname -} - +options="!check" +builddir="$srcdir"/${_realname}-${_ver} prepare() { - local i - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done + cd "$builddir" + default_prepare } build() { - cd "$_builddir" + cd "$builddir" return 0 } package() { - cd "$_builddir" + cd "$builddir" python2 setup.py install --root="$pkgdir" # install -D -m644 specs/ib_srpt.spec $pkgdir/var/lib/target/fabric/ib_srpt.spec # install -D -m644 specs/iscsi.spec $pkgdir/var/lib/target/fabric/iscsi.spec |