diff --git a/.gitignore b/.gitignore index d7e05671..cf67af4f 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,8 @@ deb-struct/usr/share/applications deploy/linux/build deploy/win32/build deploy/darwin/build +# aur build specific +aur-struct/src +aur-struct/pkg +aur-struct/*.zip* +aur-struct/*.zst \ No newline at end of file diff --git a/.SRCINFO b/aur-struct/.SRCINFO similarity index 100% rename from .SRCINFO rename to aur-struct/.SRCINFO diff --git a/PKGBUILD b/aur-struct/PKGBUILD similarity index 61% rename from PKGBUILD rename to aur-struct/PKGBUILD index 32b51690..bb5c0a4f 100644 --- a/PKGBUILD +++ b/aur-struct/PKGBUILD @@ -1,10 +1,5 @@ -# 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: KRTirtho -pkgname=spotube-bin +pkgname=spotube pkgver=0.0.3 pkgrel=1 epoch= @@ -22,9 +17,17 @@ conflicts=() replaces=() backup=() options=() -install=./install.sh +install= changelog= source=("$url/releases/download/v$pkgver/Spotube_linux-x86_64-v$pkgver.zip") noextract=() md5sums=(ae9c6cbbe97f6dcc15a7c7dc86091174) -validpgpkeys=() \ No newline at end of file +validpgpkeys=() + +package(){ + install -dm755 "${pkgdir}/usr/share/${pkgname}" + install -dm755 "${pkgdir}/usr/bin" + cp -ra ./ "${pkgdir}/usr/share/${pkgname}" + cp ./spotube.desktop ~/.local/share/applications + ln -s "/usr/share/${pkgname}/qode" "${pkgdir}/usr/bin/${pkgname}" +} \ No newline at end of file