diff options
author | Jonathan Kotta | 2021-02-23 20:16:19 -0600 |
---|---|---|
committer | Jonathan Kotta | 2021-02-23 20:16:19 -0600 |
commit | 0fadacdff2c7d32ae9397aa61c3df1cd21edf333 (patch) | |
tree | 2c1d165dc3ed770edace7a22bc0b99df6b9a1d02 | |
parent | ca66ee951417e61a8d4e829df1268cbb73508802 (diff) | |
download | aur-0fadacdff2c7d32ae9397aa61c3df1cd21edf333.tar.gz |
fix lib dir in launcher
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 5 | ||||
-rwxr-xr-x | launcher.sh | 2 |
3 files changed, 6 insertions, 5 deletions
@@ -1,7 +1,7 @@ pkgbase = starnet++-bin pkgdesc = StarNet is a neural network that can remove stars from images in one simple step leaving only background. pkgver = 1.1 - pkgrel = 1 + pkgrel = 2 url = https://sourceforge.net/projects/starnet/ arch = x86_64 license = APACHE @@ -9,7 +9,7 @@ pkgbase = starnet++-bin source = https://newcontinuum.dl.sourceforge.net/project/starnet/v1.1/StarNet_Linux.tar.gz source = launcher.sh md5sums = 454cfa616bf8ade6a28bf1ada5f27429 - md5sums = dbf63532bbbdd1d0332307347283a085 + md5sums = 18f003a03999ae8dd4a65225cab205c7 pkgname = starnet++-bin @@ -3,7 +3,7 @@ _pkgname=starnet++ pkgname=starnet++-bin pkgver=1.1 -pkgrel=1 +pkgrel=2 epoch= pkgdesc="StarNet is a neural network that can remove stars from images in one simple step leaving only background." arch=('x86_64') @@ -22,7 +22,7 @@ options=() source=("https://newcontinuum.dl.sourceforge.net/project/starnet/v${pkgver}/StarNet_Linux.tar.gz" launcher.sh) md5sums=('454cfa616bf8ade6a28bf1ada5f27429' - 'dbf63532bbbdd1d0332307347283a085') + '18f003a03999ae8dd4a65225cab205c7') noextract=() validpgpkeys=() @@ -35,6 +35,7 @@ package() { install -D -t "$dest" -m 755 mono_starnet++ rgb_starnet++ cd "$srcdir" + sed -i "s/__PKGNAME__/$pkgname/" launcher.sh install -D -m 755 launcher.sh "$pkgdir"/usr/bin/starnet-rgb install -D -m 755 launcher.sh "$pkgdir"/usr/bin/starnet-mono } diff --git a/launcher.sh b/launcher.sh index 254cdd7bb000..7d6e9511590c 100755 --- a/launcher.sh +++ b/launcher.sh @@ -20,6 +20,6 @@ if [ -n "$dst" ] ; then fi stride=${3:-} -cd /usr/lib/starnet++/ +cd /usr/lib/__PKGNAME__/ ./${color}_starnet++ "$src" "$dst" $stride |