diff options
author | Schmiddi | 2022-04-27 16:28:35 +0200 |
---|---|---|
committer | Schmiddi | 2022-04-27 16:28:35 +0200 |
commit | a93cc43fe74cce02b3c081ed5036506e4d57ebb2 (patch) | |
tree | 7bade39911c80ccdb5b93749eb9a247774b6cc27 | |
download | aur-a93cc43fe74cce02b3c081ed5036506e4d57ebb2.tar.gz |
Initial Commit
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 51 |
3 files changed, 74 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..2f7a01446fec --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = tubefeeder-git + pkgdesc = A Youtube, Lbry and Peertube client made for the Pinephone + pkgver = 1.6.6.r0.89667fa + pkgrel = 1 + url = https://www.tubefeeder.de + arch = x86_64 + arch = aarch64 + license = GPL + makedepends = git + makedepends = cargo + depends = libadwaita + optdepends = mpv: Play the videos, + optdepends = youtube-dl: Play and download the videos + provides = tubefeeder + conflicts = tubefeeder + source = tubefeeder-git::git+https://github.com/Tubefeeder/Tubefeeder.git + md5sums = SKIP + +pkgname = tubefeeder-git diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..d717d8692102 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +pkg +source +*.tar.zst +tubefeeder-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..04b3add52caf --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,51 @@ +# Maintainer: Julian Schmidhuber <aur at schmiddi dot anonaddy dot com> +pkgname=tubefeeder-git +pkgver=1.6.6.r0.89667fa +pkgrel=1 +pkgdesc="A Youtube, Lbry and Peertube client made for the Pinephone" +arch=('x86_64' 'aarch64') +url="https://www.tubefeeder.de" +license=('GPL') +groups=() +depends=('libadwaita') +optdepends=('mpv: Play the videos', 'youtube-dl: Play and download the videos') +makedepends=('git' 'cargo') +provides=("${pkgname%-git}") +conflicts=("${pkgname%-git}") +replaces=() +backup=() +options=() +install= +source=("$pkgname::git+https://github.com/Tubefeeder/Tubefeeder.git") +noextract=() +md5sums=('SKIP') + +pkgver() { + cd "$srcdir/${pkgname}" + printf "%s" "$(git describe --long --tags | sed 's/^v//;s/\([^-]*-\)g/r\1/;s/-/./g')" +} + +prepare() { + cd "$srcdir/${pkgname}" + cargo fetch --locked --target "$CARCH-unknown-linux-gnu" +} + +build() { + cd "$srcdir/${pkgname}" + export RUSTUP_TOOLCHAIN=stable + export CARGO_TARGET_DIR=target + cargo build --frozen --release --all-features +} + +package() { + cd "$srcdir/${pkgname}" + # Binary + install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/tubefeeder" + # Desktop-file + install -D packaging/tubefeeder.desktop $pkgdir/usr/share/applications/de.schmidhuberj.tubefeeder.desktop + # Icon + install -D packaging/tubefeeder.png $pkgdir/usr/share/icons/hicolor/512x512/apps/de.schmidhuberj.tubefeeder.png + + # Localization + ls -ld po/locale/*/ | sed 's|.*po/locale/||' | xargs -I % install -D "po/locale/%LC_MESSAGES/de.schmidhuberj.tubefeeder.mo" "$pkgdir/usr/share/locale/%LC_MESSAGES/de.schmidhuberj.tubefeeder.mo" +} |