summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authortydell2015-06-12 15:12:19 +0200
committertydell2015-06-12 15:12:19 +0200
commit4b768617aea423cb9f1a9b3c57c77848dffad2d8 (patch)
treea68c1a90b47a4ae1b995fa91cd079db9da6d7774
downloadaur-currency-bzr.tar.gz
Initial import
-rw-r--r--.SRCINFO25
-rwxr-xr-xPKGBUILD41
-rwxr-xr-xcurrency.install16
3 files changed, 82 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..df23d875899
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,25 @@
+pkgbase = currency-bzr
+ pkgdesc = Currency converter developed for Elementary OS desktop.
+ pkgver = r39
+ pkgrel = 1
+ url = https://code.launchpad.net/~grabli66-r/+junk/currency
+ install = currency.install
+ arch = i686
+ arch = x86_64
+ license = GPL3
+ makedepends = vala
+ makedepends = bzr
+ makedepends = cmake
+ depends = gtk3
+ depends = libsoup
+ depends = glib2
+ depends = libgee
+ depends = json-glib
+ depends = glib-networking
+ provides = currency-bzr
+ conflicts = currency-bzr
+ source = bzr+lp:~grabli66-r/+junk/currency
+ sha256sums = SKIP
+
+pkgname = currency-bzr
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100755
index 00000000000..12eef03c944
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: Marcin Tydelski <marcin.tydelski@gmail.com>
+# Contributor: Grabli66 <https://launchpad.net/~grabli66-r>
+
+pkgname=currency-bzr
+pkgver=r39
+pkgrel=1
+pkgdesc='Currency converter developed for Elementary OS desktop.'
+arch=('i686' 'x86_64')
+url='https://code.launchpad.net/~grabli66-r/+junk/currency'
+license=('GPL3')
+depends=('gtk3' 'libsoup' 'glib2' 'libgee' 'json-glib' 'glib-networking')
+optdepends=()
+makedepends=('vala' 'bzr' 'cmake')
+provides=("${pkgname%}")
+conflicts=("${pkgname%}")
+install="${pkgname%-*}.install"
+source=('bzr+lp:~grabli66-r/+junk/currency')
+sha256sums=('SKIP')
+
+pkgver() {
+ cd ${pkgname%-*}
+ printf "r%s" "$(bzr revno)"
+}
+
+build() {
+ cd ${pkgname%-*}
+
+ if [[ -d build ]]; then
+ rm -rf build
+ fi
+ mkdir build && cd build
+ cmake .. -DCMAKE_INSTALL_PREFIX=/usr
+ make
+}
+
+package() {
+ cd ${pkgname%-*}/build
+ make DESTDIR="${pkgdir}" install
+}
+
+# vim: ts=2 sw=2 et:
diff --git a/currency.install b/currency.install
new file mode 100755
index 00000000000..826f632e9bf
--- /dev/null
+++ b/currency.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