Support AUR package installation
This commit is contained in:
20
LICENSE
Normal file
20
LICENSE
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
# The MIT License (MIT)
|
||||||
|
# Copyright (c) 2020 limkokhole@gmail.com
|
||||||
|
#
|
||||||
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
# of this software and associated documentation files (the 'Software'), to deal
|
||||||
|
# in the Software without restriction, including without limitation the rights
|
||||||
|
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
# copies of the Software, and to permit persons to whom the Software is
|
||||||
|
# furnished to do so, subject to the following conditions:
|
||||||
|
#
|
||||||
|
# The above copyright notice and this permission notice shall be included in all
|
||||||
|
# copies or substantial portions of the Software.
|
||||||
|
#
|
||||||
|
# THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||||
|
# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
||||||
|
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
||||||
|
# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
|
||||||
|
# OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
44
PKGBUILD
Normal file
44
PKGBUILD
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
# Maintainer: raven2cz <tonda.fischer@gmail.com>
|
||||||
|
# Contributor: limkokhole <limkokhole@gmail.com>
|
||||||
|
|
||||||
|
pkgname=pinterest-downloader-git
|
||||||
|
pkgver=565362a.20221116.154
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc="Download all images/videos from Pinterest user/board/section."
|
||||||
|
url="https://github.com/limkokhole/pinterest-downloader"
|
||||||
|
replaces=()
|
||||||
|
arch=("any")
|
||||||
|
license=("MIT")
|
||||||
|
depends=(
|
||||||
|
"python-colorama"
|
||||||
|
"python-lxml"
|
||||||
|
"python-requests"
|
||||||
|
"python-termcolor"
|
||||||
|
"python-pysocks"
|
||||||
|
)
|
||||||
|
makedepends=("git")
|
||||||
|
provides=()
|
||||||
|
conflicts=()
|
||||||
|
source=("git+$url.git")
|
||||||
|
sha256sums=("SKIP")
|
||||||
|
|
||||||
|
_repo_name=pinterest-downloader
|
||||||
|
|
||||||
|
pkgver() {
|
||||||
|
cd "$srcdir/$_repo_name"
|
||||||
|
_author_ver=$(git describe --always | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g')
|
||||||
|
_last_commit_date=$(git log -1 --pretty='%cd' --date=short | tr -d '-')
|
||||||
|
_commit_count="$(git rev-list --count HEAD)"
|
||||||
|
echo $_author_ver.$_last_commit_date.$_commit_count
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd "$srcdir/$_repo_name"
|
||||||
|
|
||||||
|
install -d -m755 "$pkgdir/usr/local/opt/$_repo_name"
|
||||||
|
install -D -m755 "$srcdir/$_repo_name/$_repo_name.py" "$pkgdir/usr/local/opt/$_repo_name/$_repo_name.py"
|
||||||
|
|
||||||
|
mkdir -p "$pkgdir/usr/local/bin"
|
||||||
|
|
||||||
|
ln -s "/usr/local/opt/$_repo_name/$_repo_name.py" "${pkgdir}/usr/local/bin/$_repo_name.py"
|
||||||
|
}
|
||||||
@@ -1,24 +1,5 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# The MIT License (MIT)
|
|
||||||
# Copyright (c) 2020 limkokhole@gmail.com
|
|
||||||
#
|
|
||||||
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
# of this software and associated documentation files (the 'Software'), to deal
|
|
||||||
# in the Software without restriction, including without limitation the rights
|
|
||||||
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
# copies of the Software, and to permit persons to whom the Software is
|
|
||||||
# furnished to do so, subject to the following conditions:
|
|
||||||
#
|
|
||||||
# The above copyright notice and this permission notice shall be included in all
|
|
||||||
# copies or substantial portions of the Software.
|
|
||||||
#
|
|
||||||
# THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
||||||
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
||||||
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
||||||
# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
||||||
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
||||||
# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
|
|
||||||
# OR OTHER DEALINGS IN THE SOFTWARE.
|
|
||||||
|
|
||||||
__author__ = 'Lim Kok Hole'
|
__author__ = 'Lim Kok Hole'
|
||||||
__copyright__ = 'Copyright 2020'
|
__copyright__ = 'Copyright 2020'
|
||||||
|
|||||||
Reference in New Issue
Block a user