diff options
author | Boris Timofeev | 2018-04-27 11:25:58 +0300 |
---|---|---|
committer | Boris Timofeev | 2018-04-27 11:30:41 +0300 |
commit | 47a8d792609518e55d593bca2d374672c6eb5b93 (patch) | |
tree | 395e1c78275d8e4bb18fec62da7092f9054057e2 | |
parent | 5a0b00fdce12cfad98b64e9cec947bbeb29f3ac3 (diff) | |
download | aur-47a8d792609518e55d593bca2d374672c6eb5b93.tar.gz |
v3.0.3
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 36 | ||||
-rw-r--r-- | build-x64.js | 34 | ||||
-rw-r--r-- | build-x86.js | 34 | ||||
-rwxr-xr-x | insteadman.desktop | 13 |
5 files changed, 14 insertions, 120 deletions
@@ -1,22 +1,15 @@ pkgbase = insteadman pkgdesc = Manager for INSTEAD interpreter. - pkgver = 2.1.0 + pkgver = 3.0.3 pkgrel = 1 - url = https://github.com/jhekasoft/insteadman + url = https://github.com/jhekasoft/insteadman3 arch = i686 arch = x86_64 license = MIT - makedepends = npm - makedepends = nodejs + makedepends = go depends = instead - source = https://github.com/jhekasoft/insteadman/archive/v2.1.0.tar.gz - source = build-x86.js - source = build-x64.js - source = insteadman.desktop - sha256sums = b582bce4188ff4c98bd90484422599407073e9fced21c1bc988c6a01959d741d - sha256sums = a041a851218b1e8a769becff26e5ec6ba5b4b5021c6463977f03b997c576ddb9 - sha256sums = efef590ba7d432cc74ea03315ba9f363ac15fb58f9d324ae0d25e6df4bffe041 - sha256sums = 90d7d51b416ae51bdd8091fd12fef953e67f6c951f714a19ce954d39ddfecee7 + source = https://github.com/jhekasoft/insteadman3/archive/v3.0.3.tar.gz + sha256sums = aa94791afebea58533eb6008d3dd9e04ef5fe1b43eaef3deb7dca1b9efc324d3 pkgname = insteadman @@ -1,42 +1,24 @@ # Maintainer: Boris Timofeev <btimofeev@emunix.org> pkgname=insteadman -pkgver=2.1.0 +pkgver=3.0.3 pkgrel=1 pkgdesc="Manager for INSTEAD interpreter." arch=('i686' 'x86_64') -url="https://github.com/jhekasoft/insteadman" +url="https://github.com/jhekasoft/insteadman3" license=('MIT') depends=('instead') -makedepends=('npm' 'nodejs') -source=("https://github.com/jhekasoft/insteadman/archive/v$pkgver.tar.gz" - "build-x86.js" - "build-x64.js" - "insteadman.desktop") -sha256sums=('b582bce4188ff4c98bd90484422599407073e9fced21c1bc988c6a01959d741d' - 'a041a851218b1e8a769becff26e5ec6ba5b4b5021c6463977f03b997c576ddb9' - 'efef590ba7d432cc74ea03315ba9f363ac15fb58f9d324ae0d25e6df4bffe041' - '90d7d51b416ae51bdd8091fd12fef953e67f6c951f714a19ce954d39ddfecee7') +makedepends=('go') +source=("https://github.com/jhekasoft/insteadman3/archive/v$pkgver.tar.gz") +sha256sums=('aa94791afebea58533eb6008d3dd9e04ef5fe1b43eaef3deb7dca1b9efc324d3') build() { - cp build-x86.js build-x64.js $srcdir/$pkgname-$pkgver/src - cd $srcdir/$pkgname-$pkgver/src - npm install - [[ $CARCH == "i686" ]] && node build-x86.js - [[ $CARCH == "x86_64" ]] && node build-x64.js + cd "$srcdir/insteadman3-$pkgver" + GOPATH=`pwd`/.. make } package() { - install -D -m644 insteadman.desktop $pkgdir/usr/share/applications/insteadman.desktop - [[ $CARCH == "i686" ]] && cd $srcdir/$pkgname-$pkgver/build/dist/InsteadMan-linux-x86 - [[ $CARCH == "x86_64" ]] && cd $srcdir/$pkgname-$pkgver/build/dist/InsteadMan-linux-x64 - mkdir -p $pkgdir/opt/$pkgname - mkdir -p $pkgdir/usr/bin - cp -R * $pkgdir/opt/$pkgname/ - ln -s /opt/$pkgname/insteadman $pkgdir/usr/bin/insteadman - - find $pkgdir/opt/$pkgname -type d -print0 | xargs -0 chmod 755 - find $pkgdir/opt/$pkgmane -type f -print0 | xargs -0 chmod 644 - chmod 755 $pkgdir/opt/$pkgname/insteadman + cd "$srcdir/insteadman3-$pkgver" + make DESTDIR="$pkgdir" install } # vim:set ts=2 sw=2 et: diff --git a/build-x64.js b/build-x64.js deleted file mode 100644 index 0c74395d30f8..000000000000 --- a/build-x64.js +++ /dev/null @@ -1,34 +0,0 @@ -const nwjsBuilder = require('nwjs-builder-phoenix'); -const fs = require('fs-extra'); - -const builder = new nwjsBuilder.Builder({ - tasks: ['linux-x64'], - mute: false -}, "."); - -// Build returns a promise -builder.build().then(function () { - const buildDir = '../build' - const distDir = buildDir + '/dist'; - const appName = 'InsteadMan'; - const linux = 'linux'; - const x64 = 'x64'; - - console.log('GNU/Linux changes...'); - const gnulinInsteadManPathes = { - '64': distDir + '/' + appName + '-' + linux + '-' + x64 + '/' - }; - const gnulinBuildPath = buildDir + '/' + linux + '/'; - - for (let platform in gnulinInsteadManPathes) { - fs.renameSync(gnulinInsteadManPathes[platform] + appName, gnulinInsteadManPathes[platform] + appName.toLowerCase()); - fs.copySync(gnulinBuildPath + 'icon.png', gnulinInsteadManPathes[platform] + 'icon.png'); - fs.copySync(gnulinBuildPath + 'createdesktopfile', gnulinInsteadManPathes[platform] + 'createdesktopfile'); - fs.copySync(gnulinBuildPath + 'README', gnulinInsteadManPathes[platform] + 'README'); - } - console.log('GNU/Linux changes done.'); - - console.log('All done!'); -}).catch(function (error) { - console.error(error); -}); diff --git a/build-x86.js b/build-x86.js deleted file mode 100644 index fe98cfbafc54..000000000000 --- a/build-x86.js +++ /dev/null @@ -1,34 +0,0 @@ -const nwjsBuilder = require('nwjs-builder-phoenix'); -const fs = require('fs-extra'); - -const builder = new nwjsBuilder.Builder({ - tasks: ['linux-x86'], - mute: false -}, "."); - -// Build returns a promise -builder.build().then(function () { - const buildDir = '../build' - const distDir = buildDir + '/dist'; - const appName = 'InsteadMan'; - const linux = 'linux'; - const x86 = 'x86'; - - console.log('GNU/Linux changes...'); - const gnulinInsteadManPathes = { - '86': distDir + '/' + appName + '-' + linux + '-' + x86 + '/' - }; - const gnulinBuildPath = buildDir + '/' + linux + '/'; - - for (let platform in gnulinInsteadManPathes) { - fs.renameSync(gnulinInsteadManPathes[platform] + appName, gnulinInsteadManPathes[platform] + appName.toLowerCase()); - fs.copySync(gnulinBuildPath + 'icon.png', gnulinInsteadManPathes[platform] + 'icon.png'); - fs.copySync(gnulinBuildPath + 'createdesktopfile', gnulinInsteadManPathes[platform] + 'createdesktopfile'); - fs.copySync(gnulinBuildPath + 'README', gnulinInsteadManPathes[platform] + 'README'); - } - console.log('GNU/Linux changes done.'); - - console.log('All done!'); -}).catch(function (error) { - console.error(error); -}); diff --git a/insteadman.desktop b/insteadman.desktop deleted file mode 100755 index a7a7fa3da8fe..000000000000 --- a/insteadman.desktop +++ /dev/null @@ -1,13 +0,0 @@ -[Desktop Entry] -Version=1.0 -Name=InsteadMan -Name[ru]=InsteadMan -Name[uk]=InsteadMan -Comment=INSTEAD Manager -Comment[ru]=INSTEAD менеджер -Comment[uk]=INSTEAD менеджер -Exec=/opt/insteadman/insteadman -Icon=/opt/insteadman/icon.png -Terminal=false -Type=Application -Categories=Application;Game; |