diff options
author | morganamilo | 2017-11-29 16:23:06 +0000 |
---|---|---|
committer | morganamilo | 2017-11-29 16:23:06 +0000 |
commit | 455da787a900409d0375f816c0a6d07b0eedad14 (patch) | |
tree | 70fb57f06fc7d0a2d825195a0cc53bf68ef35dbb | |
download | aur-455da787a900409d0375f816c0a6d07b0eedad14.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 31 | ||||
-rw-r--r-- | PKGBUILD | 59 |
2 files changed, 90 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..1b630bd766be --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,31 @@ +pkgbase = superproductivity-git + pkgdesc = To Do List / Time Tracker with Jira Integration. + pkgver = 1.6.3.r0.gd0ec283 + pkgrel = 1 + url = http://super-productivity.com/ + arch = x86_64 + license = MIT + makedepends = npm + makedepends = gulp + makedepends = bower + makedepends = yarn + makedepends = chromium + makedepends = libicns + makedepends = graphicsmagick + makedepends = python3 + depends = gtk2 + depends = libxss + depends = gconf + depends = nss + depends = nspr + depends = libnotify + depends = libappindicator + depends = libxtst + depends = alsa-lib + provides = superproductivity + conflicts = superproductivity + source = git+https://github.com/johannesjo/super-productivity + md5sums = SKIP + +pkgname = superproductivity-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..fc225358a6d1 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,59 @@ +# Maintainer: Morgana <morganamilo@gmail.com> + +pkgname=superproductivity-git +_pkgname=superProductivity +_reponame=super-productivity +_binname=superproductivity +pkgver=1.6.3.r0.gd0ec283 +pkgrel=1 +pkgdesc='To Do List / Time Tracker with Jira Integration.' +arch=('x86_64') +url="http://super-productivity.com/" +license=('MIT') +depends=('gtk2' 'libxss' 'gconf' 'nss' 'nspr' 'libnotify' 'libappindicator' 'libxtst' 'alsa-lib') +makedepends=('npm' 'gulp' 'bower' 'yarn' 'chromium' 'libicns' 'graphicsmagick' 'python3') +provides=('superproductivity') +conflicts=('superproductivity') +source=("git+https://github.com/johannesjo/${_reponame}") +md5sums=('SKIP') + +build() { + cd ${srcdir}/${_reponame} + npm install + bower install + yarn + CHROME_BIN=/usr/bin/chromium yarn dist -l deb + + #use the deb because it contains icon files and a .desktop file + _pkgver=`git describe --abbrev=0 --tags | sed 's/^.//'` + cd "${srcdir}/${_reponame}/dist/" + ar -x superProductivity_${_pkgver}_amd64.deb + tar -xf "data.tar.xz" +} + +package() { + install -d "${pkgdir}/opt/${_pkgname}" + cp -a "${srcdir}/${_reponame}/dist/opt/${_pkgname}/." "${pkgdir}/opt/${_pkgname}" + + chmod 755 "${pkgdir}/opt/${_pkgname}/${_binname}" + + install -d "${pkgdir}/usr/share/applications" + install -Dm644 "${srcdir}/${_reponame}/dist/usr/share/applications/${_binname}.desktop" "${pkgdir}/usr/share/applications" + + install -d "${pkgdir}/usr/bin" + ln -s "/opt/${_pkgname}/${_binname}" "${pkgdir}/usr/bin/${_binname}" + + install -d "${pkgdir}/usr/share/icons/hicolor" + cp -a ${srcdir}/${_reponame}/dist/usr/share/icons/hicolor/ ${pkgdir}/usr/share/icons/hicolor/ + + install -Dm644 "${srcdir}/${_reponame}/LICENSE" "${pkgdir}/usr/share/licenses/${_binname}/LICENSE" + + +} + +pkgver() { + cd ${srcdir}/${_reponame} + git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + + |