diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2008-11-06 14:42:24 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2008-11-06 14:42:24 +0000 |
commit | 04738df3a7e683b2aa20a1a2ff7b1b3f662f9117 (patch) | |
tree | 1f4fc1f60fb916d4f0a5b553846c1353685975c3 | |
parent | ec3f3eaf61532fd7e8d4e6f94c8c3849e701e6fd (diff) | |
download | abuild-04738df3a7e683b2aa20a1a2ff7b1b3f662f9117.tar.gz abuild-04738df3a7e683b2aa20a1a2ff7b1b3f662f9117.tar.bz2 abuild-04738df3a7e683b2aa20a1a2ff7b1b3f662f9117.tar.xz abuild-04738df3a7e683b2aa20a1a2ff7b1b3f662f9117.zip |
the package now always include the pkgrel
-rwxr-xr-x | abuild | 12 |
1 files changed, 4 insertions, 8 deletions
@@ -154,8 +154,7 @@ cleancache() { } cleanpkg() { - local p=$pkgname-$pkgver - [ $pkgrel -ne 0 ] && p="$p-r$pkgrel" + local p="$pkgname-$pkgver-$pkgrel" rm -f "$PKGDEST/$p.apk" "$PKGDEST/$p.src.tar.gz" local i for i in $subpackages; do @@ -303,22 +302,19 @@ rootpkg() { } srcpkg() { - local p="$pkgname-$pkgver" - [ "$pkgrel" -ne 0 ] && p="$p-r$pkgrel" + local p="$pkgname-$pkgver-$pkgrel" local prefix="${startdir##*/}" local i files="$prefix/APKBUILD" for i in $source; do files="$files $prefix/${i##*/}" done mkdir -p "$PKGDEST" - (cd .. && tar -zcf $PKGDEST/$p.src.tar.gz $files) + (cd .. && tar -zcf "$PKGDEST/$p.src.tar.gz" $files) } # check if package is up to date up2date() { - local p="$pkgname-$pkgver" - [ "$pkgrel" -ne 0 ] && p="$p-r$pkgrel" - local pkg="$PKGDEST/$p.apk" + local pkg="$PKGDEST/$pkgname-$pkgver-$pkgrel.apk" local i s cd "$startdir" [ -f "$pkg" ] || return 1 |