diff options
author | Darren Ng | 2021-07-31 15:26:25 +0800 |
---|---|---|
committer | Darren Ng | 2021-07-31 15:26:39 +0800 |
commit | 51649493eed04b103d8d0da9e490a5a5b083e549 (patch) | |
tree | 17138eebbd9280f51c336e3f4f3be11c50fa1b98 | |
download | aur-51649493eed04b103d8d0da9e490a5a5b083e549.tar.gz |
init
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | .gitignore | 6 | ||||
-rw-r--r-- | PKGBUILD | 39 |
3 files changed, 59 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..80e6ac5e38cd --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = python-sphinxcontrib-youtube-git + pkgdesc = Sphinx extension for including YouTube and Vimeo videos + pkgver = r23.98f8caf + pkgrel = 1 + url = https://github.com/sphinx-contrib/youtube + arch = any + license = custom:BSD + makedepends = git + makedepends = python-setuptools + depends = python-sphinx>=0.6 + source = python-sphinxcontrib-youtube::git+https://github.com/sphinx-contrib/youtube.git + md5sums = SKIP + +pkgname = python-sphinxcontrib-youtube-git diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..1b33d53db642 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +* + +!/.gitignore +!/PKGBUILD +!/.SRCINFO +!/*.patch diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..7e2662fa2ba3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: Darren Ng <$(base64 --decode <<<VW4xR2ZuQGdtYWlsLmNvbQo=)> + +pkgname=python-sphinxcontrib-youtube-git +pkgver=r23.98f8caf +pkgrel=1 +# pacman -Ss python-sphinxcontrib | grep -v commu | sort +pkgdesc="Sphinx extension for including YouTube and Vimeo videos" +arch=(any) +url=https://github.com/sphinx-contrib/youtube +# https://github.com/sphinx-contrib/youtube/blob/635c8a908e3cac552ce43293c1516e7270cc4ce8/MANIFEST.in#L2 +# https://github.com/sphinx-contrib/youtube/blob/635c8a908e3cac552ce43293c1516e7270cc4ce8/sphinxcontrib/__init__.py#L10 +# https://github.com/sphinx-contrib/youtube/blob/86aa0ba318bcef8112df7b86f226479b16ed9feb/setup.py#L18 +license=(custom:BSD) +depends=("python-sphinx>=0.6") +makedepends=(git python-setuptools) +source=(${pkgname%-*}::git+https://github.com/sphinx-contrib/youtube.git) +md5sums=(SKIP) + +# prepare() { +# : +# } + +pkgver() { + cd ${pkgname%-*} + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd ${pkgname%-*} + grep distutils setup.py && /bin/false + grep setuptools setup.py + python3 setup.py build +} + +package() { + cd ${pkgname%-*} + export PYTHONHASHSEED=0 + python3 setup.py install --root="$pkgdir" --optimize=1 --skip-build +} |