summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederik “Freso” S. Olesen2018-06-04 23:05:01 +0200
committerFrederik “Freso” S. Olesen2018-06-04 23:05:01 +0200
commitf3452d762d0ce38055f2e3f07b18ac458e572018 (patch)
tree9837cbd1fc0207dd9bd3675f1cce0eadca28a3cf
parentb7a589dbcf5f51e2095d076bd3b71a034badcb37 (diff)
downloadaur-f3452d762d0ce38055f2e3f07b18ac458e572018.tar.gz
Split setup.py building out to build() function
-rw-r--r--PKGBUILD7
1 files changed, 6 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index e08735a549c..e601efe9497 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -12,9 +12,14 @@ depends=('python' 'python-gobject' 'python-setuptools')
source=("https://files.pythonhosted.org/packages/33/e5/789ef0fc2280da0ba67bae24317ee77158f23be751835c8d9dc9f0198f21/$pkgname-${pkgver}.tar.gz")
sha256sums=('ab43075afdd732e35bfc9f39ee425c23efe0f68258f3bc5688791a12028e6fc7')
+build() {
+ cd "$pkgname-$pkgver"
+ python setup.py build
+}
+
package() {
cd "$pkgname-$pkgver"
- python setup.py install --root="$pkgdir" --optimize=1
+ python setup.py install --skip-build --root="$pkgdir" --optimize=1
# Install .desktop file and icon(s)
install -Dm0644 "${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"