diff options
author | j.r | 2021-01-22 12:46:18 +0100 |
---|---|---|
committer | j.r | 2021-01-22 12:46:18 +0100 |
commit | 31d03b1ab525d6275e092d5278a5ebaf271864d2 (patch) | |
tree | 126e2c398ac323a7111ffe8c71aaedeb48002da6 /PKGBUILD | |
download | aur-31d03b1ab525d6275e092d5278a5ebaf271864d2.tar.gz |
Add youplay
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..46707775f049 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# This is an example PKGBUILD file. Use this as a start to creating your own, +# and remove these comments. For more information, see 'man PKGBUILD'. +# NOTE: Please fill out the license field for your package! If it is unknown, +# then please put 'unknown'. + +# Maintainer: Your Name <youremail@domain.com> +pkgname=youplay +pkgver=0.28 +pkgrel=1 +pkgdesc="Search, download and play music from YouTube." +arch=(any) +url="https://codeberg.org/ralfhersel/youplay" +license=('GPL3') +depends=(mpv ffmpeg python-mpv youtube-dl) +source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz" + "0001-Change-paths-for-packaging.patch" + "0002-Rename-Internet-catergorie-because-it-does-not-exist.patch") +md5sums=('87c6cdab99219a6eaffa2be122ef518d' + '45141b5634cde06c6805fc9b9a589e64' + 'bacb881be40e69da218f01cf1d9df541') + +prepare() { + cd "${pkgname}" + + patch -p1 -i ${srcdir}/0001-Change-paths-for-packaging.patch + patch -p1 -i ${srcdir}/0002-Rename-Internet-catergorie-because-it-does-not-exist.patch +} + +package() { + cd "${pkgname}" + + install -Dm755 youplay.sh ${pkgdir}/usr/bin/${pkgname} + install -Dm755 youplay.py ${pkgdir}/usr/share/${pkgname}/${pkgname}.py + install -Dm644 youplay.svg ${pkgdir}/usr/share/${pkgname}/${pkgname}.svg + desktop-file-install --dir=${pkgdir}/usr/share/applications youplay.desktop +} |