diff options
author | jon | 2018-09-05 21:23:52 +0300 |
---|---|---|
committer | jon | 2018-09-05 21:23:52 +0300 |
commit | f998c126afc29c0e11320d8860da6d89da11e494 (patch) | |
tree | ededb637bfbaf3fbdef5b58e9a7641ecc5c88b89 /PKGBUILD | |
parent | 4a551f2727a0107bc0b986fcafc769b63911ea17 (diff) | |
download | aur-f998c126afc29c0e11320d8860da6d89da11e494.tar.gz |
Added workaround for "Can't load plugin" error.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 53 |
1 files changed, 41 insertions, 12 deletions
@@ -1,25 +1,54 @@ # Maintainer: Šarūnas Gliebus <ssharunas at yahoo.co.uk> pkgname=boram pkgver=0.5.0 -pkgrel=1 +pkgrel=2 pkgdesc="Cross-platform WebM converter" arch=('x86_64') url="https://github.com/Kagami/boram" license=('CC0-1.0') depends=('mpv' 'ffmpeg') -source=(https://github.com/Kagami/boram/releases/download/v$pkgver/$pkgname-v$pkgver-linux-x64.7z) -md5sums=('48c3bbd87c6409d0c244b2808546de95') +makedepends=('p7zip' 'python2' 'node-gyp') +source=( + "https://github.com/Kagami/boram/releases/download/v$pkgver/$pkgname-v$pkgver-linux-x64.7z" + "git+https://github.com/Kagami/nacl_sdk.git" + "git+https://github.com/Kagami/boram.git#tag=v$pkgver" +) +md5sums=( + '48c3bbd87c6409d0c244b2808546de95' + 'SKIP' + 'SKIP' +) + +build() { + # Since video preview does not work with default release, we will have to build libboram.so by ourselves. + + # First of all we will need nacl for the build + cd "$srcdir/nacl_sdk" + rm -f ./python + ln -s /usr/bin/python2 ./python #nacl needs python2 as python + export PATH="$(pwd):$PATH" + ./naclsdk update + export NACL_SDK_ROOT="$(pwd)/pepper_49" + + # Then we will need to build it with nody-gyp + cd "$srcdir/boram" + # Now we want to remove target ffmpeg57, because it does not compile and we have target ffmpeg58 + sed -i -e '52,56d' binding.gyp + node-gyp rebuild +} package() { - mkdir -p "$pkgdir/opt/" - mkdir -p "$pkgdir/usr/bin/" - - cp -r "$srcdir/$pkgname-v$pkgver-linux-x64/" "$pkgdir/opt/$pkgname" - find "$pkgdir/opt/$pkgname" -type f -exec chmod 644 -- {} + - find "$pkgdir/opt/$pkgname" -type d -exec chmod 755 -- {} + + mkdir -p "$pkgdir/opt/" + mkdir -p "$pkgdir/usr/bin/" + + cp -r "$srcdir/$pkgname-v$pkgver-linux-x64/" "$pkgdir/opt/$pkgname" + cp "$srcdir/boram/build/Release/boram.node" "$pkgdir/opt/$pkgname/resources/app/libboram.so" + + find "$pkgdir/opt/$pkgname" -type f -exec chmod 644 -- {} + + find "$pkgdir/opt/$pkgname" -type d -exec chmod 755 -- {} + - chmod 655 "$pkgdir/opt/$pkgname/boram" - chmod 655 "$pkgdir/opt/$pkgname/resources/app/checklib" + chmod 655 "$pkgdir/opt/$pkgname/boram" + chmod 655 "$pkgdir/opt/$pkgname/resources/app/checklib" - ln -s "/opt/$pkgname/boram" "$pkgdir/usr/bin/boram" + ln -s "/opt/$pkgname/boram" "$pkgdir/usr/bin/boram" } |