aboutsummaryrefslogtreecommitdiffstats
path: root/community/cpio/APKBUILD
diff options
context:
space:
mode:
authortmpfile <tmpfile@users.noreply.github.com>2017-05-13 13:22:38 -0300
committerShiz <hi@shiz.me>2017-05-14 03:36:20 +0200
commit2bbf0ef7bb0bed19f029254baafa7020a84d0c9b (patch)
tree54c0588ff833a6e16990ceb3681eaa9aa968e9cd /community/cpio/APKBUILD
parente2052758e0e6a071fa8b6eda5f5aeea6b0425c9c (diff)
downloadaports-2bbf0ef7bb0bed19f029254baafa7020a84d0c9b.tar.bz2
aports-2bbf0ef7bb0bed19f029254baafa7020a84d0c9b.tar.xz
community/cpio: modernize abuild
Diffstat (limited to 'community/cpio/APKBUILD')
-rw-r--r--community/cpio/APKBUILD25
1 files changed, 5 insertions, 20 deletions
diff --git a/community/cpio/APKBUILD b/community/cpio/APKBUILD
index 4001c739f7..01406169de 100644
--- a/community/cpio/APKBUILD
+++ b/community/cpio/APKBUILD
@@ -8,41 +8,26 @@ url="http://www.gnu.org/software/cpio"
arch="all"
license="GPL"
depends="tar"
-depends_dev=""
-makedepends="$depends_dev"
-#install=""
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.bz2::http://ftp.snt.utwente.nl/pub/software/gnu/cpio/$pkgname-$pkgver.tar.bz2"
-_builddir="$srcdir"/$pkgname-$pkgver
-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
-}
+builddir="$srcdir"/$pkgname-$pkgver
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--prefix=/usr \
--mandir=/usr/share/man \
- --infodir=/usr/share/info \
- || return 1
- make || return 1
+ --infodir=/usr/share/info
+ make
}
package() {
- cd "$_builddir"
+ cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
rm -f "$pkgdir"/usr/lib/charset.alias
rm -f "$pkgdir"/usr/libexec/rmt # part of the tar pkg
rm "$pkgdir"/usr/share/man/*/rmt.*
}
-md5sums="93eea9f07c0058c097891c73e4955456 cpio-2.12.tar.bz2"
-sha256sums="70998c5816ace8407c8b101c9ba1ffd3ebbecba1f5031046893307580ec1296e cpio-2.12.tar.bz2"
sha512sums="0cd4da5f2fbca179ab4e666a5f878414c086a5f98bce4c76273f21d9b2a6fe422d901b5d453826c5f81bbe363aa015047a1e99779ad1a451c8feca6205c63120 cpio-2.12.tar.bz2"