Skip to content

Commit 64cf527

Browse files
committed
python-sshpubkeys: initial commit.
1 parent 747def4 commit 64cf527

File tree

2 files changed

+74
-0
lines changed

2 files changed

+74
-0
lines changed

packages/python-sshpubkeys/PKGBUILD

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
2+
# See COPYING for license details.
3+
4+
pkgname=python-sshpubkeys
5+
_pkgname=sshpubkeys
6+
pkgver=3.3.1
7+
pkgrel=7
8+
pkgdesc='SSH public key parser,'
9+
arch=('any')
10+
url='https://pypi.org/project/sshpubkeys/#files'
11+
license=('MIT')
12+
depends=('python' 'python-ecdsa' 'python-cryptography')
13+
makedepends=('python-build' 'python-pip' 'python-wheel')
14+
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
15+
sha512sums=('e80de54a780796c6d5b3c083c302c27d6420cee033756df421258488d9ca0c6e230d6ac587d50cb850efd7ffa1157f55504e7d4ea7fca8e02caec9f44e389a4a')
16+
17+
build() {
18+
cd "$_pkgname-$pkgver"
19+
20+
python -m build --wheel --outdir="$startdir/dist"
21+
}
22+
23+
package() {
24+
cd "$_pkgname-$pkgver"
25+
26+
pip install \
27+
--verbose \
28+
--disable-pip-version-check \
29+
--no-warn-script-location \
30+
--ignore-installed \
31+
--no-compile \
32+
--no-deps \
33+
--root="$pkgdir" \
34+
--prefix=/usr \
35+
--no-index \
36+
--find-links="file://$startdir/dist" \
37+
$_pkgname
38+
}
39+

packages/ruby-cairo/PKGBUILD

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
2+
# See COPYING for license details.
3+
4+
pkgname=ruby-cairo
5+
_gemname=${pkgname#ruby-}
6+
pkgver=1.18.4
7+
pkgrel=2
8+
pkgdesc='Ruby bindings for cairo'
9+
arch=('x86_64' 'aarch64')
10+
url='https://cairographics.org/rcairo'
11+
license=('Ruby')
12+
depends=('ruby' 'cairo' 'ruby-pkg-config' 'ruby-native-package-installer'
13+
'ruby-red-colors')
14+
makedepends=('ruby-rdoc')
15+
options=('!emptydirs')
16+
source=("https://rubygems.org/downloads/$_gemname-$pkgver.gem")
17+
noextract=("$_gemname-$pkgver.gem")
18+
sha512sums=('665a791f54567bb81e8533e56964640c14dce195da8b5cca968930dcaef9a28b705c5a04901a796f0cc645e1168fd127da95f0d1f6dbe5a71ef27d8f4624adb7')
19+
20+
package() {
21+
_gemdir="$(ruby -e'puts Gem.default_dir')"
22+
_platform="$(gem env platform | cut -d':' -f2)"
23+
_ext_api_ver="$(ruby -e'puts Gem.extension_api_version')"
24+
25+
gem install --ignore-dependencies --no-user-install --no-document \
26+
-i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" "$_gemname-$pkgver.gem"
27+
28+
rm -r "$pkgdir/$_gemdir/cache/$_gemname-$pkgver.gem" \
29+
"$pkgdir/$_gemdir/extensions/$_platform/$_ext_api_ver/$_gemname-$pkgver/gem_make.out" \
30+
"$pkgdir/$_gemdir/gems/$_gemname-$pkgver/ext/cairo/Makefile"
31+
32+
install -Dm 644 "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/COPYING" \
33+
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
34+
}
35+

0 commit comments

Comments
 (0)