diff options
author | Sumner Evans | 2019-10-28 22:32:52 -0600 |
---|---|---|
committer | Sumner Evans | 2019-10-28 22:32:52 -0600 |
commit | a5aee3ca0aa7b9a02fc7a3e542eaf4e53ed761c7 (patch) | |
tree | b9a59046952c1b656df8ac7fab15efd649f0be78 /update.sh | |
download | aur-a5aee3ca0aa7b9a02fc7a3e542eaf4e53ed761c7.tar.gz |
Version 0.8.6 of Sublime Music
Diffstat (limited to 'update.sh')
-rwxr-xr-x | update.sh | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/update.sh b/update.sh new file mode 100755 index 000000000000..1aef34d0ee79 --- /dev/null +++ b/update.sh @@ -0,0 +1,77 @@ +#! /bin/sh + +AUR_NAME=sublime-music +PROJ_NAME=sublime-music +DESCRIPTION="A native Subsonic/Airsonic/*sonic client for Linux. Build using Python and GTK+." +URL=https://gitlab.com/sumner/sublime-music +DEPENDS=( + python-bottle + python-deepdiff + python-deprecated + python-fuzzywuzzy + python-gobject + python-pychromecast + pygobject-devel + python-dateutil + python-levenshtein + python-mpv + python-yaml + python-requests +) +LICENSE='GPL3' +ADDITIONAL= + +if [[ $# == 0 ]]; then + echo 'Usage: ./update.sh VERSION_NUMBER' + exit 1 +fi + +src=https://files.pythonhosted.org/packages/source/${PROJ_NAME:0:1}/${PROJ_NAME}/${PROJ_NAME}-$1.tar.gz + +# Get the sha256sum sum of the package. +mkdir -p dist +pushd dist +wget $src +sha=$(sha256sum "${PROJ_NAME}-$1.tar.gz" | cut -d ' ' -f 1) +popd + +echo "# Maintainer: Sumner Evans <sumner.evans98 at gmail dot com> + +pkgbase='${AUR_NAME}' +pkgname=('${AUR_NAME}') +_module='${PROJ_NAME}' +pkgver='$1' +pkgrel=1 +pkgdesc='${DESCRIPTION}' +url='${URL}' +depends=( + 'python'" > PKGBUILD + +# Include the dependencies. +for d in ${DEPENDS[*]}; do + echo " '$d'" >> PKGBUILD +done + +echo ") +makedepends=('python-setuptools') +license=('${LICENSE}') +arch=('any') +source=('${src}') +sha256sums=('${sha}') +${ADDITIONAL} + +build() { + cd \"\${srcdir}/\${_module}-\${pkgver}\" + python setup.py build +} + +package() { + depends+=() + cd \"\${srcdir}/\${_module}-\${pkgver}\" + python setup.py install --root=\"\${pkgdir}\" --optimize=1 --skip-build +}" >> PKGBUILD + +make + +# Test +makepkg -f |