Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
aports
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
679
Issues
679
List
Boards
Labels
Service Desk
Milestones
Merge Requests
164
Merge Requests
164
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
aports
Commits
90117ef5
Commit
90117ef5
authored
Sep 19, 2016
by
Jakub Jirutka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
main/py-itsdangerous: add py2/py3 subpackage
parent
1bcc1c32
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
21 deletions
+29
-21
main/py-itsdangerous/APKBUILD
main/py-itsdangerous/APKBUILD
+29
-21
No files found.
main/py-itsdangerous/APKBUILD
View file @
90117ef5
...
...
@@ -3,37 +3,45 @@
pkgname
=
py-itsdangerous
_pkgname
=
itsdangerous
pkgver
=
0.24
pkgrel
=
0
pkgrel
=
1
pkgdesc
=
"A Python helper to pass trusted data to untrusted environments"
url
=
"http://github.com/mitsuhiko/itsdangerous"
arch
=
"noarch"
license
=
"BSD"
depends
=
"python"
depends_dev
=
""
makedepends
=
"python-dev py-setuptools"
install
=
""
subpackages
=
""
depends
=
""
makedepends
=
"python2-dev python3-dev py-setuptools"
subpackages
=
"py2-
${
pkgname
#py-
}
:_py2 py3-
${
pkgname
#py-
}
:_py3"
source
=
"https://files.pythonhosted.org/packages/source/
${
_pkgname
:0:1
}
/
$_pkgname
/
$_pkgname
-
$pkgver
.tar.gz"
_builddir
=
"
$srcdir
"
/
$_pkgname
-
$pkgver
prepare
()
{
local
i
cd
"
$_builddir
"
for
i
in
$source
;
do
case
$i
in
*
.patch
)
msg
$i
;
patch
-p1
-i
"
$srcdir
"
/
$i
||
return
1
;;
esac
done
}
builddir
=
"
$srcdir
/
$_pkgname
-
$pkgver
"
build
()
{
cd
"
$_builddir
"
python setup.py build
||
return
1
cd
"
$builddir
"
python2 setup.py build
||
return
1
python3 setup.py build
}
package
()
{
cd
"
$_builddir
"
python setup.py
install
--prefix
=
/usr
--root
=
"
$pkgdir
"
||
return
1
mkdir
-p
"
$pkgdir
"
}
_py2
()
{
replaces
=
"
$pkgname
"
_py python2
}
_py3
()
{
_py python3
}
_py
()
{
local
python
=
"
$1
"
pkgdesc
=
"
$pkgdesc
(for
$python
)"
depends
=
"
$depends
$python
"
install_if
=
"
$pkgname
=
$pkgver
-r
$pkgrel
$python
"
cd
"
$builddir
"
$python
setup.py
install
--prefix
=
/usr
--root
=
"
$subpkgdir
"
}
md5sums
=
"a3d55aa79369aef5345c036a8a26307f itsdangerous-0.24.tar.gz"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment