diff options
author | Bruce Zhang | 2019-05-30 14:32:20 +0800 |
---|---|---|
committer | Bruce Zhang | 2019-05-30 14:32:20 +0800 |
commit | 69a13148705523117934683e442f789c2329f964 (patch) | |
tree | c4d7f1a13b0131550bf00b6dce25bd12e9061b02 | |
download | aur-69a13148705523117934683e442f789c2329f964.tar.gz |
devhub 0.90.1
-rw-r--r-- | .SRCINFO | 32 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | PKGBUILD | 51 |
3 files changed, 88 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..4d94b3b91850 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,32 @@ +pkgbase = devhub + pkgdesc = TweetDeck for GitHub - Android, iOS, Web & Desktop + pkgver = 0.90.1 + pkgrel = 1 + url = https://github.com/devhubapp/devhub + arch = x86_64 + arch = i686 + license = AGPL3 + makedepends = yarn + makedepends = jq + makedepends = moreutils + depends = c-ares + depends = ffmpeg + depends = gtk3 + depends = http-parser + depends = libevent + depends = libnghttp2 + depends = libxslt + depends = libxss + depends = minizip + depends = nss + depends = re2 + depends = snappy + optdepends = kde-cli-tools: file deletion support (kioclient5) + optdepends = trash-cli: file deletion support (trash-put) + optdepends = xdg-utils: open URLs with desktop default (xdg-email, xdg-open) + provides = devhub + source = devhub-0.90.1.src.tar.gz::https://github.com/devhubapp/devhub/archive/v0.90.1.tar.gz + sha256sums = 9a7177e35488009934ab6089824743cac7678610acc0bda6ff9f7c3bb1711a9c + +pkgname = devhub + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..50913bceb7de --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +src +pkg +*.src.tar.gz +*.part +*.pkg.tar.xz diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..0d1b3e6d10cb --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,51 @@ +# Maintainer: Bruce Zhang <zttt183525594@gmail.com> +pkgname=devhub +pkgver=0.90.1 +pkgrel=1 +pkgdesc="TweetDeck for GitHub - Android, iOS, Web & Desktop" +arch=('x86_64' 'i686') +url="https://github.com/devhubapp/devhub" +license=('AGPL3') +depends=('c-ares' 'ffmpeg' 'gtk3' 'http-parser' 'libevent' 'libnghttp2' + 'libxslt' 'libxss' 'minizip' 'nss' 're2' 'snappy') +optdepends=('kde-cli-tools: file deletion support (kioclient5)' + 'trash-cli: file deletion support (trash-put)' + 'xdg-utils: open URLs with desktop default (xdg-email, xdg-open)') +makedepends=('yarn' 'jq' 'moreutils') +source=("$pkgname-$pkgver.src.tar.gz::https://github.com/devhubapp/devhub/archive/v$pkgver.tar.gz") +sha256sums=('9a7177e35488009934ab6089824743cac7678610acc0bda6ff9f7c3bb1711a9c') +provides=("devhub") + +prepare() { + cd "$pkgname-$pkgver" + jq '.build.linux.target = ["dir"]' "$srcdir/$pkgname-$pkgver/packages/desktop/package.json" | sponge "$srcdir/$pkgname-$pkgver/packages/desktop/package.json" + yarn --pure-lockfile + yarn clean +} + +build() { + cd "$pkgname-$pkgver" + yarn workspace @devhub/web build + yarn workspace @devhub/desktop build:skipweb --linux +} + +package() { + cd "$pkgname-$pkgver/packages/desktop/build/linux-unpacked" + find . -type f -exec install -Dm644 {} "$pkgdir/opt/devhub/{}" \; + chmod 755 "$pkgdir/opt/devhub/devhub" + mkdir -p "$pkgdir/usr/bin" + ln -sf /opt/devhub/devhub "$pkgdir/usr/bin/devhub" + + echo "[Desktop Entry] +Name=DevHub +Comment=TweetDeck for GitHub - Android, iOS, Web & Desktop +Exec=/opt/devhub/devhub %U +Terminal=false +Type=Application +Icon=devhub +Categories=Utility;Development; +MimeType=x-scheme-handler/devhub;" > "$srcdir/devhub.desktop" + install -Dm644 "$srcdir/devhub.desktop" "$pkgdir/usr/share/applications/devhub.desktop" + + install -Dm644 "$srcdir/$pkgname-$pkgver/packages/desktop/assets/icons/icon.png" "$pkgdir/usr/share/icons/hicolor/512x512/apps/devhub.png" +} |