user/caprine: new aport
This commit is contained in:
parent
bb2ddb410c
commit
a9c6511e76
5 changed files with 3418 additions and 73 deletions
64
user/caprine/APKBUILD
Normal file
64
user/caprine/APKBUILD
Normal file
|
@ -0,0 +1,64 @@
|
|||
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||
|
||||
pkgname=caprine
|
||||
pkgver=2.56.1
|
||||
pkgrel=0
|
||||
pkgdesc="Elegant Facebook Messenger desktop app"
|
||||
arch="noarch"
|
||||
url="https://github.com/sindresorhus/caprine"
|
||||
license="MIT"
|
||||
depends="electron"
|
||||
makedepends="npm findutils"
|
||||
source="https://github.com/sindresorhus/caprine/archive/refs/tags/v2.56.1.tar.gz
|
||||
caprine.desktop
|
||||
caprine.js
|
||||
"
|
||||
|
||||
build() {
|
||||
npm install --ignore-scripts
|
||||
npx --yes patch-package
|
||||
npx tsc
|
||||
rm -r node_modules
|
||||
npm install --ignore-scripts --production
|
||||
npx --yes patch-package
|
||||
}
|
||||
|
||||
package() {
|
||||
local appdir=/usr/lib/$pkgname
|
||||
|
||||
install -d "$pkgdir"$appdir
|
||||
cp -r * "$pkgdir"$appdir
|
||||
|
||||
install -dm755 "$pkgdir/usr/share/pixmaps"
|
||||
install -m644 build/icon.png "$pkgdir/usr/share/pixmaps/$pkgname.png"
|
||||
|
||||
install -Dm755 "$srcdir"/$pkgname.js "$pkgdir"/usr/bin/$pkgname
|
||||
install -Dm644 "$srcdir"/$pkgname.desktop \
|
||||
"$pkgdir"/usr/share/applications/$pkgname.desktop
|
||||
|
||||
install -dm755 "$pkgdir"/usr/share/licenses/$pkgname
|
||||
ln -s $(realpath -m --relative-to=/usr/share/licenses/$pkgname $appdir/license) \
|
||||
"$pkgdir"/usr/share/licenses/$pkgname
|
||||
|
||||
# Clean up
|
||||
rm -r "$pkgdir"$appdir/build
|
||||
rm -r "$pkgdir"$appdir/source
|
||||
rm -r "$pkgdir"$appdir/tsconfig.json
|
||||
find "$pkgdir"$appdir \
|
||||
-name "package.json" \
|
||||
-exec sed -e "s|$srcdir/$pkgname|$appdir|" \
|
||||
-i {} \; \
|
||||
-or -name ".*" -prune -exec rm -r '{}' \; \
|
||||
-or -name "bin" -prune -exec rm -r '{}' \; \
|
||||
-or -name "example" -prune -exec rm -r '{}' \; \
|
||||
-or -name "examples" -prune -exec rm -r '{}' \; \
|
||||
-or -name "man" -prune -exec rm -r '{}' \; \
|
||||
-or -name "scripts" -prune -exec rm -r '{}' \; \
|
||||
-or -name "test" -prune -exec rm -r '{}' \;
|
||||
}
|
||||
sha512sums="
|
||||
22d96d62f26eba22af03936f3b8215e0f63b0bffa3fd960a2aa48f1d9974d375adf23b585e6697f84f023cfbaac9a960a9aab9c6a7c5879598d07e4ed63a5403 v2.56.1.tar.gz
|
||||
3226351b0ca2d33bf85f543c9e3b9aa6d1d4ccae352d2977d23b54842a72511f0a7a249c62832fe3bd8edad65dd251cf7802e5a27f43c20bf559bcc7e4ca54a7 caprine.desktop
|
||||
c4639328655f4bccb68e93d8bd54cd3ca57f5a1117fd3de573aae767bc1828b87bba498d7ca050775e7644665f4fa96e9f80e68bba25f449c7a6e2689df76f7f caprine.js
|
||||
"
|
1605
user/caprine/caprine.desktop
Normal file
1605
user/caprine/caprine.desktop
Normal file
File diff suppressed because one or more lines are too long
1749
user/caprine/caprine.js
Normal file
1749
user/caprine/caprine.js
Normal file
File diff suppressed because one or more lines are too long
|
@ -1,41 +0,0 @@
|
|||
# Maintainer: Antoine Martin <dev@ayakael.net>
|
||||
|
||||
pkgname="py3-anyio"
|
||||
_pkgname="anyio"
|
||||
pkgver=3.6.1
|
||||
_pkgver=$pkgver
|
||||
pkgrel=0
|
||||
arch='noarch'
|
||||
pkgdesc="High level compatibility layer for multiple asynchronous event loop implementations"
|
||||
url="https://github.com/agronholm/anyio"
|
||||
license="MIT"
|
||||
depends="python3 py3-idna py3-sniffio"
|
||||
makedepends="py3-setuptools py3-setuptools_scm"
|
||||
checkdepends="py3-pytest py3-trustme py3-hypothesis py3-uvloop py3-trio py3-pytest-mock"
|
||||
source="${pkgname}-${pkgver}.tar.gz::https://pypi.io/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
||||
builddir="$srcdir"/$_pkgname-$pkgver
|
||||
options="!check" # Failing tests
|
||||
|
||||
build() {
|
||||
python3 setup.py build
|
||||
}
|
||||
|
||||
check() {
|
||||
# Install to a temporary root as the test suite requires the entry point for
|
||||
# its pytest plugin
|
||||
pyver=$(python3 -c "import sys; print('{}.{}'.format(*sys.version_info[:2]))")
|
||||
python3 setup.py install --root="$PWD/tmp_install" --skip-build
|
||||
PYTHONPATH="$PWD/tmp_install/usr/lib/python$pyver/site-packages" pytest
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 setup.py install \
|
||||
--skip-build \
|
||||
--optimize=1 \
|
||||
--prefix=/usr \
|
||||
--root="$pkgdir"
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
99ae55eada2df971405a1592afd980ac964c80a4502465a2016423182409691d0c943280a3a7448efc78036e481614451585238b62ebea924709f0ba888f7604 py3-anyio-3.6.1.tar.gz
|
||||
"
|
|
@ -1,32 +0,0 @@
|
|||
# Maintainer: Antoine Martin <dev@ayakael.net>
|
||||
|
||||
_pyname=django-cors-headers
|
||||
pkgname="py3-$_pyname"
|
||||
pkgver=3.7.0
|
||||
pkgrel=1
|
||||
arch='noarch'
|
||||
pkgdesc="Django application for handling the server headers required for Cross-Origin Resource Sharing (CORS)"
|
||||
url="https://pypi.python.org/project/$_pyname"
|
||||
license="MIT"
|
||||
depends='python3 py3-django'
|
||||
makedepends='py3-setuptools'
|
||||
options="!check"
|
||||
source="${pkgname}-${pkgver}.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-${pkgver}.tar.gz"
|
||||
builddir="$srcdir"/$_pyname-$pkgver
|
||||
|
||||
build() {
|
||||
cd "$builddir"
|
||||
|
||||
python3 setup.py build
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$builddir"
|
||||
|
||||
python3 setup.py install --root="$pkgdir"/ --optimize=1 --skip-build
|
||||
|
||||
install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
|
||||
}
|
||||
sha512sums="
|
||||
e1dc9695f99108f0908d8d348d284f1fd4a8ccbb84b3c748c9ae8d81d6f32ac8ef3417b612710e64ea4c63d464d97ac31a199292ebcdaaec3f3e37ad025ed0de py3-django-cors-headers-3.7.0.tar.gz
|
||||
"
|
Loading…
Reference in a new issue