summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD33
1 files changed, 25 insertions, 8 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 3901136cd34..ef3035ee984 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,26 +1,43 @@
# Maintainer: Andrew Stubbs <andrew.stubbs at gmail dot com>
pkgname=nuvola-app-youtube
-pkgver=1.2
+pkgver=1.3
pkgrel=1
-pkgdesc="Integration of YouTube into your linux desktop via Nuvola Player."
+pkgdesc="Integration of YouTube into your linux desktop via Nuvola Player 3.0."
arch=('any')
url="https://github.com/tiliado/nuvola-app-youtube"
license=('2-Clause BSD-license')
depends=('nuvolaplayer>=3', 'nuvolaplayer<4')
-makedepends=('git')
+makedepends=('lasem' 'scour' 'python-virtualenv')
options=(!emptydirs)
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/tiliado/nuvola-app-youtube/archive/${pkgver}.tar.gz")
-md5sums=('f08dbeed43f3f45dce6e709b3411aae8')
+md5sums=('efc8d734e9cdb905ef9b275bcb17200e')
+
+prepare() {
+ cd "${pkgname}-${pkgver}"
+
+ virtualenv ve
+ source ve/bin/activate
+ pip install nuvolasdk
+
+ # Generate Makefile
+ ./configure --prefix=/usr
+}
build() {
- cd "${srcdir}/${pkgname}-${pkgver}"
- make build
+ cd "${pkgname}-${pkgver}"
+
+ # Optimize SVG icons (scour), generate PNG icons (lasem)
+ make
}
package() {
- cd "${srcdir}/${pkgname}-${pkgver}"
- make install DEST="${pkgdir}/usr/share/nuvolaplayer3/web_apps/"
+ cd "${pkgname}-${pkgver}"
+
+ make install DESTDIR="${pkgdir}"
+
+ # Install all available licenses.
+ install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}/" LICENSE*
}
# vim:set ts=4 sw=4 et: