Skip to content

Commit

Permalink
Added desktop file to pkgbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
schneidermanuel committed Mar 2, 2024
1 parent a0d4ae4 commit 58718eb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
7 changes: 5 additions & 2 deletions PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ pkgname=twitchleecher-dx
_pkgname=TwitchLeecher-Dx
pkgdesc="A simple download tool for Twitch streams"
pkgver=3.4.0
_pkgver=3.4.0-beta2
_pkgver=3.4.0-beta3
pkgrel=1
arch=('x86_64')
url='https://github.com/schneidermanuel/TwitchLeecher-Dx'
Expand All @@ -11,7 +11,7 @@ depends=("icu" "ffmpeg")
makedepends=("dotnet-sdk")
options=("staticlibs")
source=("$url/archive/refs/tags/v$_pkgver.tar.gz")
sha256sums=('e411968d3709db4e2bb9b6e0b83c0f25464c95df99b0b0f7dc096c1372865034')
sha256sums=('af426f5d57720aaa8bdb6c0b2f69828bdb5b861f01ddf92f4cbe340d3dde1bfb')

build() {
cd "$_pkgname-$_pkgver/TwitchLeecher/TwitchLeecher"
Expand All @@ -28,6 +28,9 @@ package() {
cd "$_pkgname-$_pkgver"

install -d $pkgdir/usr/{bin,lib}
install -d $pkgdir/usr/share/{pixmaps,applications}
cp -r $pkgname "$pkgdir/usr/lib/"
ln -s "$pkgdir/usr/lib/$pkgname/TwitchLeecher" "$pkgdir/usr/bin/$pkgname"
cp TwitchLeecher/Resources/Images/TL_Icon.png "$pkgdir/usr/share/pixmaps/twitchleecher-dx.png"
cp twitchleecher-dx.desktop "$pkgdir/usr/share/applications/twitchleecher-dx.desktop"
}
9 changes: 9 additions & 0 deletions twitchleecher-dx.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env xdg-open
[Desktop Entry]
Type=Application
Version=1.0
Name=TwitchLeecher-Dx
Comment=Fast Twitch Stream Downloader
Exec=/usr/bin/twitchleecher-dx
Icon=twitchleecher-dx
Terminal=false

0 comments on commit 58718eb

Please sign in to comment.