Skip to content

Commit

Permalink
test if LICENSE file is exist before trying to do mkdir
Browse files Browse the repository at this point in the history
  • Loading branch information
zer4tul committed Mar 24, 2013
1 parent d249263 commit 73f92cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xiami-downloader-git/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pkgrel=1
pkgdesc="Python script for download preview music from xiami.com."
arch=('any')
url="https://github.com/timothyqiu/xiami-downloader.git"
license=('unknown')
license=('MIT')
depends=("python2")
optdepends=("mutagen: ID3 tag support")
makedepends=('git')
Expand All @@ -30,11 +30,11 @@ build() {
msg "GIT checkout done"

mkdir -p "$pkgdir/$_insdir"
mkdir -p "$pkgdir/usr/share/licenses/$pkgname"
cp -rf "$_gitname/"* "$pkgdir/$_insdir"
cd "$pkgdir/$_insdir"
if [ -f LICENSE ]
then
mkdir -p "$pkgdir/usr/share/licenses/$pkgname"
mv LICENSE "$pkgdir/usr/share/licenses/$pkgname"
fi
rm -rf tests .git*
Expand Down

0 comments on commit 73f92cf

Please sign in to comment.