blob: e8c1bbcb19ab3149242b82ed042a5792ce02b636 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Maintainer: Subhamoy Biswas <hey@neosubhamoy.com>
pkgname=neodlp
pkgver=0.4.0
pkgrel=1
pkgdesc="Cross-platform Video/Audio Downloader Desktop App with Modern UI and Browser Integration"
arch=('x86_64' 'aarch64')
url="https://github.com/neosubhamoy/neodlp"
license=('MIT')
depends=('cairo' 'desktop-file-utils' 'gdk-pixbuf2' 'glib2' 'gtk3' 'hicolor-icon-theme' 'libsoup' 'pango' 'webkit2gtk-4.1' 'ffmpeg')
makedepends=('curl' 'jq')
options=('!strip' '!emptydirs')
install=${pkgname}.install
pkgver() {
# Get the latest release info using GitHub API
local latest_tag=$(curl -s "https://api.github.com/repos/neosubhamoy/neodlp/releases/latest" | jq -r '.tag_name')
# Extract version number from tag (remove the leading 'v' and any suffix after '-')
# This will work with formats like v0.1.0, v0.1.0-beta, v1.0.0-stable, etc.
echo "$latest_tag" | sed -E 's/^v([0-9]+\.[0-9]+\.[0-9]+)(-.*)?$/\1/'
}
prepare() {
cd "$srcdir"
mkdir -p extracted
# Extract the appropriate .deb file based on architecture
case "$CARCH" in
x86_64)
ar x "NeoDLP_${pkgver}_amd64.deb"
;;
aarch64)
ar x "NeoDLP_${pkgver}_arm64.deb"
;;
esac
}
package() {
tar -xf "$srcdir/data.tar.gz" -C "${pkgdir}"
}
source_x86_64=("NeoDLP_${pkgver}_amd64.deb::${url}/releases/download/v$pkgver/NeoDLP_${pkgver}_amd64.deb")
sha256sums_x86_64=('SKIP')
source_aarch64=("NeoDLP_${pkgver}_arm64.deb::${url}/releases/download/v$pkgver/NeoDLP_${pkgver}_arm64.deb")
sha256sums_aarch64=('SKIP')
|