-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
40f3869
commit 2e0f5ce
Showing
2 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Maintainer: zxp19821005 <zxp19821005 at 163 dot com> | ||
pkgname=autocut-git | ||
pkgver=r84.638f6d8 | ||
pkgrel=1 | ||
pkgdesc="Cut videos using a text editor.用文本编辑器剪视频." | ||
arch=('any') | ||
url="https://github.com/mli/autocut" | ||
license=('Apache') | ||
conflicts=( | ||
"${pkgname%-git}" | ||
) | ||
provides=( | ||
"${pkgname%-git}" | ||
) | ||
depends=( | ||
'python' | ||
'ffmpeg' | ||
'python-importlib-metadata' | ||
'python-setuptools' | ||
'opencc' | ||
) | ||
makedepends=( | ||
'git' | ||
'python-pipx' | ||
) | ||
source=( | ||
"${pkgname%-git}::git+${url}.git" | ||
) | ||
sha256sums=('SKIP') | ||
pkgver() { | ||
cd "${srcdir}/${pkgname%-git}" | ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" | ||
} | ||
build() { | ||
cd "${srcdir}/${pkgname%-git}" | ||
python setup.py build | ||
} | ||
package() { | ||
cd "${srcdir}/${pkgname%-git}" | ||
python setup.py install --root="${pkgdir}" --skip-build --optimize=1 | ||
install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" | ||
} |