[arch-commits] Commit in python-rjsmin/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Mon Nov 9 15:45:46 UTC 2020
Date: Monday, November 9, 2020 @ 15:45:46
Author: felixonmars
Revision: 747126
archrelease: copy trunk to community-staging-x86_64
Added:
python-rjsmin/repos/community-staging-x86_64/
python-rjsmin/repos/community-staging-x86_64/PKGBUILD
(from rev 747125, python-rjsmin/trunk/PKGBUILD)
----------+
PKGBUILD | 94 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 94 insertions(+)
Copied: python-rjsmin/repos/community-staging-x86_64/PKGBUILD (from rev 747125, python-rjsmin/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-11-09 15:45:46 UTC (rev 747126)
@@ -0,0 +1,94 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=rjsmin
+pkgname=python-rjsmin
+pkgver=1.1.0
+pkgrel=2
+pkgdesc="Fast javascript minifier for Python"
+arch=('x86_64')
+url="https://github.com/ndparker/rjsmin"
+license=('Apache')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz"
+ "https://raw.githubusercontent.com/ndparker/rjsmin/2472a11e823ab41d9c1b96235b5ff21a523c48e3/tests/js/basic.bang.js"
+ "https://raw.githubusercontent.com/ndparker/rjsmin/2472a11e823ab41d9c1b96235b5ff21a523c48e3/tests/js/basic.js"
+ "https://raw.githubusercontent.com/ndparker/rjsmin/2472a11e823ab41d9c1b96235b5ff21a523c48e3/tests/js/basic.min.js"
+ "https://raw.githubusercontent.com/ndparker/rjsmin/2472a11e823ab41d9c1b96235b5ff21a523c48e3/tests/js/incomplete_bang_comment.js"
+ "https://raw.githubusercontent.com/ndparker/rjsmin/2472a11e823ab41d9c1b96235b5ff21a523c48e3/tests/js/incomplete_bang_comment.min.js"
+ "https://raw.githubusercontent.com/ndparker/rjsmin/2472a11e823ab41d9c1b96235b5ff21a523c48e3/tests/js/incomplete_bang_comment2.js"
+ "https://raw.githubusercontent.com/ndparker/rjsmin/2472a11e823ab41d9c1b96235b5ff21a523c48e3/tests/js/incomplete_bang_comment2.min.js"
+ "https://raw.githubusercontent.com/ndparker/rjsmin/2472a11e823ab41d9c1b96235b5ff21a523c48e3/tests/js/incomplete_comment.js"
+ "https://raw.githubusercontent.com/ndparker/rjsmin/2472a11e823ab41d9c1b96235b5ff21a523c48e3/tests/js/incomplete_comment.min.js"
+ "https://raw.githubusercontent.com/ndparker/rjsmin/2472a11e823ab41d9c1b96235b5ff21a523c48e3/tests/js/incomplete_comment2.js"
+ "https://raw.githubusercontent.com/ndparker/rjsmin/2472a11e823ab41d9c1b96235b5ff21a523c48e3/tests/js/incomplete_comment2.min.js"
+ "https://raw.githubusercontent.com/ndparker/rjsmin/2472a11e823ab41d9c1b96235b5ff21a523c48e3/tests/js/incomplete_regex.js"
+ "https://raw.githubusercontent.com/ndparker/rjsmin/2472a11e823ab41d9c1b96235b5ff21a523c48e3/tests/js/incomplete_regex.min.js"
+ "https://raw.githubusercontent.com/ndparker/rjsmin/2472a11e823ab41d9c1b96235b5ff21a523c48e3/tests/js/incomplete_regex2.js"
+ "https://raw.githubusercontent.com/ndparker/rjsmin/2472a11e823ab41d9c1b96235b5ff21a523c48e3/tests/js/incomplete_regex2.min.js"
+ "https://raw.githubusercontent.com/ndparker/rjsmin/2472a11e823ab41d9c1b96235b5ff21a523c48e3/tests/js/incomplete_string.js"
+ "https://raw.githubusercontent.com/ndparker/rjsmin/2472a11e823ab41d9c1b96235b5ff21a523c48e3/tests/js/incomplete_string.min.js"
+ "https://raw.githubusercontent.com/ndparker/rjsmin/2472a11e823ab41d9c1b96235b5ff21a523c48e3/tests/js/issue8.bang.js"
+ "https://raw.githubusercontent.com/ndparker/rjsmin/2472a11e823ab41d9c1b96235b5ff21a523c48e3/tests/js/issue8.js"
+ "https://raw.githubusercontent.com/ndparker/rjsmin/2472a11e823ab41d9c1b96235b5ff21a523c48e3/tests/js/issue8.min.js"
+ "https://raw.githubusercontent.com/ndparker/rjsmin/2472a11e823ab41d9c1b96235b5ff21a523c48e3/tests/js/issue13.bang.js"
+ "https://raw.githubusercontent.com/ndparker/rjsmin/2472a11e823ab41d9c1b96235b5ff21a523c48e3/tests/js/issue13.js"
+ "https://raw.githubusercontent.com/ndparker/rjsmin/2472a11e823ab41d9c1b96235b5ff21a523c48e3/tests/js/issue13.min.js"
+ "https://raw.githubusercontent.com/ndparker/rjsmin/2472a11e823ab41d9c1b96235b5ff21a523c48e3/tests/js/lone_slash.js"
+ "https://raw.githubusercontent.com/ndparker/rjsmin/2472a11e823ab41d9c1b96235b5ff21a523c48e3/tests/js/lone_slash.min.js")
+sha512sums=('e89641666f4235e5125e33a8da727a204bd0f263c101833849d8368edb7522a184b0f6d87da39690b7e8c1dad0ae8a40508b019e971393a3ad99440ad8ccc3fc'
+ 'f22b09b82aeb20705b5f601e6cec74c76065b8dc99b1efd4228d6612f818c89d8869352f478f6b178ad5fa1db38b2d846c46df4ba2106db2487960baeaf9b993'
+ 'a0d976cef109e86463abb0d9cc30793a89b47494c8d15775078abf2a9edb2b3ac58a91f61d257ddfd321e743d41cc30f3641ee3a7abb003b59fc060afdf9f594'
+ '9a5905e8f51804f5bd05ec3ceaa936f8189e7fa78eab5fad535ea57b615a14076e33d504901fb7c29684890c204d8040ab9577aafcb1439666dd3f46ab078238'
+ 'e7443061b79731165156b59bf0f29e1be395b4d019a765751deea6d58a8c8efdc5b8e11129a64eb2d283f0b6d1db7c39d76e1c7870b1c78e6d9f7d6494ea7379'
+ '9a05b61b07257359f940a8f9cb202ec1af69f4d7001c79115f7b3e94e9a0a5c704bccd21d68e494e76d94e63692e06e27e7095975fb8b6eb314f10a5c762f3c1'
+ '41b1fa8942045e75e83c939af861f1aa9d5c5250ae90326d65fd9e3f3ebe05e94a9d0274a28f701b58f360554bbee5fbdce9b6d59c32ea39943232b136521023'
+ 'f33e482d37825cc1c43f7207ca1670c0adb5a6f26e61e1d82a08f26eb5b556950352a6d23eadab488169e6caf28da13519e8d814832573cb029eee32bba039ba'
+ '0e371efc1ebb0c6700f93382748a1b73113941fd91fb23a728d6120b72ce2b7d9b777331c342ef65778632c8014332f8a9fc1bd5f3e29454ef69c7d86548b756'
+ 'f478ce19820178a2ba62d0a8de5ce2a8636af2bc924ead1dd5a7445dd2cf6731ac1f2fcdc11a800a3b95fa7e92b85ea313a004403f076a57f93e7651a1ad697c'
+ '8ab4191e6b4a3748ffc6706c81ec1b0530500d38ba8864e80d738e9e42945e1293f8a130e37d5f3460a3f41f71194044a4065855fe7e504670534154fe106855'
+ '8b01e175f96bd6e78f2593c12ce25fa1190a2bd62009d49c3eb48796e92513d72eb6c7551de92142f0d472015f969152372d2a392c199ea62b5bc788a3524350'
+ 'efdeae77a92a5b2d1e033a1bf3c683733d820ad05c99fb81a9898fc2db0577679283ccc8944d89f027e23eaef3fbc6b874aac36be8a8784a127ec169ad3f8c60'
+ '4c0f92338a477d55cf5469074a7ab4789166008c0f6c8e71d5ece6432fb3983dbd197892880fdad7b30c8709ce0ab94ccab5a98c976f57318fda16a7c25f65d8'
+ '5735b4c295cbc0153968c39876d0b534a82f3dc77d484034b6def6b9b6db7c13f6a77a5c3a16f1ce53eeef30d3e4185bde08d846e950709b9b00c97d71854c58'
+ 'c7922fad417e09594994d99d9a439a030a952822bb79fd236ee0fa25074f66e680c3d343b4d132e06236838e4b7261d762408859f2cb41f43537c71506652c11'
+ 'f9553a393e3d8e156be3d5fb84fe0ff4ff7d1e14bf532f73254438d2c7c3c7bc25039ac77e3efbc2a170976e7a2304c5cb6f7ba5909f4bcc1fe69ffdc7728835'
+ 'b829281ad512a96963ab163b7184163c413d3d860c068861ae8ccd08bf6e075e491e969931a9d50f0338226d6ba1bd35d2e814d80b7f2fcd98094ebc54cb2d1a'
+ '1ae63012cb82280383bc95b535e9244f431a5b0f2bf499228d718bf0515a63a8c042391c39ec01e16cbbbae339ee2b321eda80bc0bc2d4c01a8e5961a54d6419'
+ '2625bf4bd6756501e997ec1b0584d4409bd9a2f6939cc766a4d81f5651d7160ccf31c76c39e229c5fbcec0ed48ddeb90b3ede7c318c3c76899d46101414b0833'
+ '1ae63012cb82280383bc95b535e9244f431a5b0f2bf499228d718bf0515a63a8c042391c39ec01e16cbbbae339ee2b321eda80bc0bc2d4c01a8e5961a54d6419'
+ '617b23df6bf2e9e6178057619fa28f060f3b8de4f9bda6eef4ead291349a03f0d3f60efe922ee03b34dc35ac6d3e97756759d08a8a7e1009291e761905f97298'
+ 'de36ebea07a1e1eb26fdd130f479c7db940b5c348541fe291fa2aab88253b347832e33c88b94f2282124014479809d8dc14001f7d329a6bc45a006d0f24cac53'
+ '617b23df6bf2e9e6178057619fa28f060f3b8de4f9bda6eef4ead291349a03f0d3f60efe922ee03b34dc35ac6d3e97756759d08a8a7e1009291e761905f97298'
+ 'c48275ca22faa833571c483f65a5a3405df8040cc50944ce6594d65e8edb3c19bd9218086f7212b5c95662af9612b83adc0ed9220f965775ee259dbbe3423b26'
+ '699193c05efd5f8f4d3521f0ee2fd3ec962a72ed7313d9f292561ce45dc88236645378ce692394f154e4067cf52bac369c2bdfa1b9990d7a48017be32c99c705')
+
+prepare() {
+ mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
+ # symlink missing test files:
+ # https://github.com/ndparker/rjsmin/issues/20
+ mkdir -vp "$pkgname-$pkgver/tests/js/"
+ ln -svf "${PWD}/"*.js "$pkgname-$pkgver/tests/js/"
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+ python setup.py build
+}
+
+check() {
+ cd "$pkgname-$pkgver"
+ local python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
+ export PYTHONPATH="build/lib.linux-${CARCH}-${python_version}/:${PYTHONPATH}"
+ pytest -v
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ python setup.py install --skip-build \
+ --optimize=1 \
+ --prefix=/usr \
+ --root="${pkgdir}"
+ install -vDm 644 {docs/{CHANGES,DESCRIPTION},README.md} -t "${pkgdir}/usr/share/doc/${pkgname}"
+}
More information about the arch-commits
mailing list