From b43b0e449228a0e29be8e50d493589ef5b8f58f4 Mon Sep 17 00:00:00 2001 From: Salman Abuhaimed Date: Thu, 27 Jul 2023 10:24:16 +0300 Subject: [PATCH] bump version + make PKGBUILD follow rust packages guidelines --- CHANGELOG.md | 8 +++++++- Cargo.lock | 2 +- Cargo.toml | 2 +- aur/PKGBUILD | 27 ++++++++++++++++----------- 4 files changed, 25 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8b86e8a..ca8b52d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/Cargo.lock b/Cargo.lock index 9b49efb..160c44d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3088,7 +3088,7 @@ dependencies = [ [[package]] name = "ytdlp-gui" -version = "0.2.5" +version = "0.3.0" dependencies = [ "anyhow", "chrono", diff --git a/Cargo.toml b/Cargo.toml index 2bed5e2..ede22f7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/aur/PKGBUILD b/aur/PKGBUILD index 813cbed..53385a1 100644 --- a/aur/PKGBUILD +++ b/aur/PKGBUILD @@ -1,29 +1,34 @@ -# Maintainer: Salman +# Maintainer: Salman Abuhaimed # 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"