diff --git a/user/caprine/APKBUILD b/user/caprine/APKBUILD deleted file mode 100644 index 73c3e02..0000000 --- a/user/caprine/APKBUILD +++ /dev/null @@ -1,66 +0,0 @@ -# Maintainer: Antoine Martin (ayakael) -# Contributor: Antoine Martin (ayakael) - -pkgname=caprine -pkgver=2.59.1 -pkgrel=0 -pkgdesc="Elegant Facebook Messenger desktop app" -arch="x86_64 aarch64" # bloced by electron -url="https://github.com/sindresorhus/caprine" -license="MIT" -depends="electron" -makedepends="npm findutils coreutils" -options="!check" -source=" - $pkgname-$pkgver.tar.gz::https://github.com/sindresorhus/caprine/archive/refs/tags/v$pkgver.tar.gz - caprine.desktop - caprine.js - " - -build() { - npm install --ignore-scripts - npx --yes patch-package - npx tsc - rm -r node_modules - npm install --ignore-scripts --production - npx --yes patch-package -} - -package() { - local appdir=/usr/lib/$pkgname - - install -d "$pkgdir"$appdir - cp -r ./* "$pkgdir"$appdir - - install -dm755 "$pkgdir/usr/share/pixmaps" - install -m644 build/icon.png "$pkgdir/usr/share/pixmaps/$pkgname.png" - - install -Dm755 "$srcdir"/$pkgname.js "$pkgdir"/usr/bin/$pkgname - install -Dm644 "$srcdir"/$pkgname.desktop \ - "$pkgdir"/usr/share/applications/$pkgname.desktop - - install -dm755 "$pkgdir"/usr/share/licenses/$pkgname - ln -s "$(realpath -m --relative-to=/usr/share/licenses/$pkgname $appdir/license)" \ - "$pkgdir"/usr/share/licenses/$pkgname - - # Clean up - rm -r "$pkgdir"$appdir/build - rm -r "$pkgdir"$appdir/source - rm -r "$pkgdir"$appdir/tsconfig.json - find "$pkgdir"$appdir \ - -name "package.json" \ - -exec sed -e "s|$srcdir/$pkgname|$appdir|" \ - -i {} \; \ - -or -name ".*" -prune -exec rm -r '{}' \; \ - -or -name "bin" -prune -exec rm -r '{}' \; \ - -or -name "example" -prune -exec rm -r '{}' \; \ - -or -name "examples" -prune -exec rm -r '{}' \; \ - -or -name "man" -prune -exec rm -r '{}' \; \ - -or -name "scripts" -prune -exec rm -r '{}' \; \ - -or -name "test" -prune -exec rm -r '{}' \; -} -sha512sums=" -a525bafb6a53dd2dbdfc4b9b3e96d3939d93be950a3287f2a5ef6465d5a6b64ecda79b6d393023d067f939e1a6e85debc35f83bbb1f758011db9d94dd9ff8a72 caprine-2.59.1.tar.gz -a469e3bea24926119e51642b777ef794c5fa65421107903f967c36d81bbb1adb3d52469ce3a3301b2c890f1aa53ab989ded22a7c6e811fb8cf0a582dbd835e19 caprine.desktop -44280c62ce43bdafa8528729371fccb16b8a0e3db7aca28d5c157ae0144dca5fbb023b8883b561955aa28ab62e967f2674d8c6bcaff186e2cdd0e7ba8beab9ac caprine.js -" diff --git a/user/caprine/caprine.desktop b/user/caprine/caprine.desktop deleted file mode 100644 index b17bbd5..0000000 --- a/user/caprine/caprine.desktop +++ /dev/null @@ -1,9 +0,0 @@ -[Desktop Entry] -Type=Application -Name=Caprine -GenericName=IM Client -Comment=Unofficial Facebook Messenger app -Icon=caprine -Exec=caprine -Categories=GTK;InstantMessaging;Network; -StartupNotify=true diff --git a/user/caprine/caprine.js b/user/caprine/caprine.js deleted file mode 100644 index a963ee6..0000000 --- a/user/caprine/caprine.js +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/electron - -const name = 'caprine'; - -const {app} = require('electron'); -const fs = require('fs'); -const path = require('path'); - -// Change command name. -const fd = fs.openSync('/proc/self/comm', fs.constants.O_WRONLY); -fs.writeSync(fd, name); -fs.closeSync(fd); - -// Remove first command line argument (/usr/bin/electron). -process.argv.splice(0, 1); - -// Set application paths. -const appPath = path.join(path.dirname(__dirname), 'lib', name); -const packageJson = require(path.join(appPath, 'package.json')); -const productName = packageJson.productName; -app.setAppPath(appPath); -app.setDesktopName(name + '.desktop'); -app.setName(productName); -app.setPath('userCache', path.join(app.getPath('cache'), productName)); -app.setPath('userData', path.join(app.getPath('appData'), productName)); -app.setVersion(packageJson.version); - -// Run the application. -require('module')._load(appPath, module, true);