Skip to content

Commit

Permalink
bump version + make PKGBUILD follow rust packages guidelines
Browse files Browse the repository at this point in the history
  • Loading branch information
BKSalman committed Jul 27, 2023
1 parent 109f2ca commit b43b0e4
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 14 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,14 @@

## Unversioned


## 0.3.0

- Major: Added general logs to stderr and a temporary file in temp directory
- Major: Added Download logs
- Major: Added Download logs after finishing every download
- Major: Replaced radio buttons with a drop-down menu for selecting resolutions and formats
- Minor: Moved the download button to the bottom
- Minor: Moved the "Browse" button to the right of the path text box
- Minor: Options and settings now save on download instead of saving on app close
- Dev: Replaced env_logger with log4rs to use it for std logging and file logging

Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ytdlp-gui"
version = "0.2.5"
version = "0.3.0"
edition = "2021"
description = "a GUI for yt-dlp written in Rust"
license = "GPL-3.0"
Expand Down
27 changes: 16 additions & 11 deletions aur/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,29 +1,34 @@
# Maintainer: Salman
# Maintainer: Salman Abuhaimed <salman.f.abuhaimed@gmail.com>
#

pkgname=ytdlp-gui
_pkgname=ytdlp-gui
pkgver=0.2.5
pkgrel=4
pkgver=0.3.0
pkgrel=1
pkgdesc="a GUI for yt-dlp written in Rust"
url="https://github.com/BKSalman"
license=("GPL3")
arch=("x86_64")
makedepends=( "rust" "pkgconf" "git" )
makedepends=( "cargo" "pkgconf" "git" )
depends=("ffmpeg" "yt-dlp")
provides=("ytdlp-gui")
conflicts=("ytdlp-gui")

source=("${url}/ytdlp-gui/archive/refs/tags/v${pkgver}.tar.gz")
source=("$pkgname-$pkgver.tar.gz::${url}/ytdlp-gui/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=("b7e1a8350dc69f583122df4bc43c6968ab1f11a3282472f1fc52b47630387f0c")

prepare() {
cd "$pkgname-${pkgver}"
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}

build() {
cd "$_pkgname-${pkgver}"
cargo build --release
cd "$pkgname-${pkgver}"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --forzen --release
}

package() {
cd "$_pkgname-${pkgver}"
cd "$pkgname-${pkgver}"

install -Dm755 "${CARGO_TARGET_DIR:-target}/release/ytdlp-gui" "$pkgdir/usr/bin/ytdlp-gui"
install -Dm755 "data/applications/ytdlp-gui.desktop" "$pkgdir/usr/share/applications/ytdlp-gui.desktop"
Expand Down

0 comments on commit b43b0e4

Please sign in to comment.