summaryrefslogtreecommitdiffstats
path: root/tryton-module2apkbuild.template
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2012-03-03 22:48:30 +0000
committerFabian Affolter <fabian@affolter-engineering.ch>2012-03-03 22:48:30 +0000
commit9a5f97a2d87f1bdce1e8e61bced5e59f2ae848f8 (patch)
tree6222ec6452e7def5115f48ac46d1903d183de844 /tryton-module2apkbuild.template
parentd0fe082568a5f8f04fc9b87ca1cc9f6e9880e170 (diff)
downloadscripts-9a5f97a2d87f1bdce1e8e61bced5e59f2ae848f8.tar.bz2
scripts-9a5f97a2d87f1bdce1e8e61bced5e59f2ae848f8.tar.xz
Script the mass generation of APKBUILD files for tryton
Diffstat (limited to 'tryton-module2apkbuild.template')
-rw-r--r--tryton-module2apkbuild.template29
1 files changed, 29 insertions, 0 deletions
diff --git a/tryton-module2apkbuild.template b/tryton-module2apkbuild.template
new file mode 100644
index 0000000..401ef3c
--- /dev/null
+++ b/tryton-module2apkbuild.template
@@ -0,0 +1,29 @@
+# Automatically generated by tryton-module2apkbuild. Please check if there
+# is an update available for this package and remove those tow lines.
+# Contributor: @@contributor@@
+# Maintainer: @@maintainer@@
+pkgname=trytond-@@modname@@
+_pkgname=@@pkgname@@
+_tryton_major=@@major@@
+pkgver=@@version@@
+pkgrel=0
+pkgdesc="@@modname@@ module for Tryton"
+url="http://www.tryton.org"
+arch="noarch"
+license="GPL3+"
+depends="trytond @@required-modules@@"
+makedepends="python-dev py-setuptools"
+subpackages=""
+source="http://downloads.tryton.org/$_tryton_major/$_pkgname-$pkgver.tar.gz"
+_builddir="$srcdir"/$_pkgname-$pkgver
+
+build() {
+ cd "$_builddir"
+ python setup.py build || return 1
+}
+
+package() {
+ cd "$_builddir"
+ python setup.py install --prefix=/usr --root="$pkgdir" || return 1
+}
+