summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO25
-rwxr-xr-xPKGBUILD42
-rwxr-xr-xenvelope.install16
3 files changed, 83 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..54257656851
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,25 @@
+pkgbase = envelope-git
+ pkgdesc = Personal budget application for the Elementary OS desktop
+ pkgver = 386.97c1a25
+ pkgrel = 1
+ url = http://nlaplante.github.io/envelope/
+ install = envelope.install
+ arch = i686
+ arch = x86_64
+ license = GPL3
+ makedepends = git
+ makedepends = vala
+ makedepends = cmake
+ depends = granite
+ depends = gtk3
+ depends = libgee
+ depends = glib2
+ depends = glib-networking
+ depends = sqlheavy
+ provides = envelope
+ conflicts = envelope
+ source = git+https://github.com/nlaplante/envelope.git
+ sha256sums = SKIP
+
+pkgname = envelope-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100755
index 00000000000..b8370fe042b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer: Marcin Tydelski <marcin.tydelski@gmail.com>
+# Contributor: Nicolas Laplante <https://launchpad.net/~nicolas-laplante>
+
+pkgname=envelope-git
+pkgver=386.97c1a25
+pkgrel=1
+_gitname=envelope
+pkgdesc='Personal budget application for the Elementary OS desktop'
+arch=('i686' 'x86_64')
+url='http://nlaplante.github.io/envelope/'
+license=('GPL3')
+depends=('granite' 'gtk3' 'libgee' 'glib2' 'glib-networking' 'sqlheavy')
+makedepends=('git' 'vala' 'cmake')
+provides=("${pkgname%-*}")
+conflicts=("${pkgname%-*}")
+install="${pkgname%-*}.install"
+source=('git+https://github.com/nlaplante/envelope.git')
+sha256sums=('SKIP')
+
+pkgver() {
+ cd $_gitname
+ echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
+}
+
+build() {
+ cd $_gitname
+
+ if [[ -d build ]]; then
+ rm -rf build
+ fi
+ mkdir build && cd build
+ cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ..
+ make
+}
+
+package() {
+ cd $_gitname/build
+
+ make DESTDIR="${pkgdir}" install
+}
+
+# vim: ts=2 sw=2 et: \ No newline at end of file
diff --git a/envelope.install b/envelope.install
new file mode 100755
index 00000000000..826f632e9bf
--- /dev/null
+++ b/envelope.install
@@ -0,0 +1,16 @@
+post_install() {
+ glib-compile-schemas usr/share/glib-2.0/schemas
+ gtk-update-icon-cache -ftq usr/share/icons/hicolor
+}
+
+post_upgrade() {
+ glib-compile-schemas usr/share/glib-2.0/schemas
+ gtk-update-icon-cache -ftq usr/share/icons/hicolor
+}
+
+post_remove() {
+ glib-compile-schemas usr/share/glib-2.0/schemas
+ gtk-update-icon-cache -ftq usr/share/icons/hicolor
+}
+
+# vim: ts=2 sw=2 et: \ No newline at end of file