Created
October 30, 2016 19:27
-
-
Save freundTech/cf53364acf2a25f431a2705c84f3a69f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Adrian Freund <freundadrian@gmail.com> | |
pkgname=('python2-javascriptcore-git') | |
_pkgname='pyjavascriptcore' | |
pkgver=v1.0.r2.gdb9d8e9 | |
pkgrel=1 | |
pkgdesc="Javascript Core for Python (When using WebKit2Gtk)" | |
url="https://github.com/freundTech/pyjavascriptcore" | |
license=('GPL2') | |
arch=('i686' 'x86_64') | |
depends=('python2' 'cython2' 'webkitgtk') | |
provides=('python2-javascriptcore') | |
conflicts=('python2-javascriptcore') | |
makedepends=('pkg-config') | |
source=("git://github.com/freundTech/pyjavascriptcore.git") | |
sha512sums=('SKIP') | |
pkgver() { | |
cd "${srcdir}/${_pkgname}" | |
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' | |
} | |
build() { | |
cd "${srcdir}/${_pkgname}" | |
python2 setup_legacy.py build | |
} | |
package() { | |
cd "${srcdir}/${_pkgname}" | |
python2 setup_legacy.py install --root="${pkgdir}" --optimize=1 --skip-build | |
install -Dm644 'COPYING' "${pkgdir}/usr/share/licenses/${pkgname}/COPYING" | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment