diff options
author | Maxime Gauduin | 2015-06-09 12:04:39 +0200 |
---|---|---|
committer | Maxime Gauduin | 2015-06-09 12:04:39 +0200 |
commit | 586e119eb1572a63acbe0730358c977e04821df2 (patch) | |
tree | 3e3169c50c8bef544b927f01f6424e5ccf80bcbf | |
download | aur-586e119eb1572a63acbe0730358c977e04821df2.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | MKPKG | 6 | ||||
-rw-r--r-- | PKGBUILD | 37 | ||||
-rw-r--r-- | pantheon-calculator.install | 13 |
4 files changed, 74 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..bb1bbdcc8da1 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = pantheon-calculator + pkgdesc = The Pantheon Calculator + pkgver = 0.1 + pkgrel = 1 + url = https://launchpad.net/pantheon-calculator + install = pantheon-calculator.install + arch = i686 + arch = x86_64 + groups = pantheon + license = GPL3 + makedepends = cmake + makedepends = vala + depends = granite-bzr + source = https://launchpad.net/pantheon-calculator/freya/0.1/+download/pantheon-calculator-0.1.tgz + sha256sums = 41255cd0b04e3625cde11052c53feb5deae7241c0907dc25a4cf91351ae4b432 + +pkgname = pantheon-calculator + diff --git a/MKPKG b/MKPKG new file mode 100644 index 000000000000..5edef179307c --- /dev/null +++ b/MKPKG @@ -0,0 +1,6 @@ +pkgname=('pantheon-calculator-bzr') +builddeps=('granite-bzr') + +check_bzr $packagedir/$pkgname/${pkgname%-*} + +# vim: ts=2 sw=2 et: diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..633ebb18c66a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Maxime Gauduin <alucryd@archlinux.org> + +pkgname=pantheon-calculator +pkgver=0.1 +pkgrel=1 +pkgdesc='The Pantheon Calculator' +arch=('i686' 'x86_64') +url='https://launchpad.net/pantheon-calculator' +license=('GPL3') +groups=('pantheon') +depends=('granite-bzr') +makedepends=('cmake' 'vala') +install='pantheon-calculator.install' +source=("https://launchpad.net/pantheon-calculator/freya/${pkgver}/+download/pantheon-calculator-${pkgver}.tgz") +sha256sums=('41255cd0b04e3625cde11052c53feb5deae7241c0907dc25a4cf91351ae4b432') + +build() { + cd pantheon-calculator-${pkgver} + + if [[ -d build ]]; then + rm -rf build + fi + mkdir build && cd build + + cmake .. \ + -DCMAKE_BUILD_TYPE='Release' \ + -DCMAKE_INSTALL_PREFIX='/usr' + make +} + +package() { + cd pantheon-calculator-${pkgver}/build + + make DESTDIR="${pkgdir}" install +} + +# vim: ts=2 sw=2 et: diff --git a/pantheon-calculator.install b/pantheon-calculator.install new file mode 100644 index 000000000000..511a2a0c7807 --- /dev/null +++ b/pantheon-calculator.install @@ -0,0 +1,13 @@ +post_install() { + glib-compile-schemas /usr/share/glib-2.0/schemas +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} + +# vim: ts=2 sw=2 et: |