fix PKGBUILD: extracted dir is nim-bt not nimbt
This commit is contained in:
parent
275eb1532f
commit
395a8d4d28
1 changed files with 4 additions and 2 deletions
6
PKGBUILD
6
PKGBUILD
|
|
@ -12,8 +12,10 @@ makedepends=('nim' 'nimble')
|
|||
source=("$pkgname-$pkgver.tar.gz::https://git.n1kt.ru/Niko/nim-bt/archive/v$pkgver.tar.gz")
|
||||
sha256sums=('SKIP')
|
||||
|
||||
_repodir=nim-bt
|
||||
|
||||
build() {
|
||||
cd "$srcdir/$pkgname"
|
||||
cd "$srcdir/$_repodir"
|
||||
nimble install -y --depsOnly --nimbleDir:"$srcdir/nimble" 2>/dev/null || true
|
||||
export NIMBLE_DIR="$srcdir/nimble"
|
||||
nim c \
|
||||
|
|
@ -27,7 +29,7 @@ build() {
|
|||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/$pkgname"
|
||||
cd "$srcdir/$_repodir"
|
||||
install -Dm755 build/nbt "$pkgdir/usr/bin/nbt"
|
||||
install -Dm755 build/nimbt-daemon "$pkgdir/usr/bin/nimbt-daemon"
|
||||
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue