diff --git a/.SRCINFO b/.SRCINFO index b00729b575f7..43b9fde59a02 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,19 +1,27 @@ pkgbase = auto-editor pkgdesc = A command line application for automatically editing video and audio. - pkgver = 28.1.0 + pkgver = 29.0.5 pkgrel = 1 url = https://auto-editor.com/ - arch = any + arch = x86_64 license = Unlicense - makedepends = python-build - makedepends = python-installer - makedepends = python-wheel - makedepends = python-setuptools - depends = python - depends = python-numpy - depends = python-av + makedepends = nim + makedepends = git + depends = lame + depends = gcc-libs + depends = dav1d + depends = x264 + depends = ffmpeg + depends = opus + depends = libvpx + depends = svt-av1 + depends = x265 + depends = glibc optdepends = yt-dlp: download and use URLs as inputs - source = auto-editor-28.1.0.tar.gz::https://github.com/WyattBlue/auto-editor/archive/refs/tags/28.1.0.tar.gz - sha256sums = ac972021b74cc53a2ea8c7ef1de3d79373ff7858e1d1998c037c1992adc860ee + optdepends = xdg-utils: automatically open completed files with xdg-open + provides = auto-editor + conflicts = auto-editor-bin + source = auto-editor-29.0.5.tar.gz::https://github.com/WyattBlue/auto-editor/archive/refs/tags/29.0.5.tar.gz + sha256sums = 5be27a63d621c17dbf8976c478cdcc933d6c2fc6590b7b7e4adb4811a57bfe84 pkgname = auto-editor diff --git a/PKGBUILD b/PKGBUILD index 5f06ea416437..33654aa636da 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -2,27 +2,42 @@ # Contributor: ston <2424284164@qq.com> pkgname=auto-editor -pkgver=28.1.0 +pkgver=29.0.5 pkgrel=1 pkgdesc="A command line application for automatically editing video and audio." url="https://auto-editor.com/" -arch=('any') +arch=('x86_64') license=("Unlicense") -depends=('python' 'python-numpy' 'python-av') -optdepends=('yt-dlp: download and use URLs as inputs') -makedepends=('python-build' 'python-installer' 'python-wheel' 'python-setuptools') -source=("$pkgname-$pkgver.tar.gz::https://github.com/WyattBlue/auto-editor/archive/refs/tags/${pkgver}.tar.gz") -sha256sums=('ac972021b74cc53a2ea8c7ef1de3d79373ff7858e1d1998c037c1992adc860ee') +provides=("auto-editor") +conflicts=("auto-editor-bin") +depends=("lame" "gcc-libs" "dav1d" "x264" "ffmpeg" "opus" "libvpx" "svt-av1" "x265" "glibc") +optdepends=( + 'yt-dlp: download and use URLs as inputs' + 'xdg-utils: automatically open completed files with xdg-open') +makedepends=("nim" "git") # git is required to bring in the required Nim version (>=2.2.2) +source=("${pkgname}-${pkgver}.tar.gz::https://github.com/WyattBlue/auto-editor/archive/refs/tags/${pkgver}.tar.gz") +sha256sums=('5be27a63d621c17dbf8976c478cdcc933d6c2fc6590b7b7e4adb4811a57bfe84') + +prepare() { + cd ${pkgname}-${pkgver} + + # Fixes a build error where Nim generates code that technically works, but causes gcc to error out. + # Echoing into a file is fine for 29.0.5, but future releases will have an existing nim.conf and some sort of + # patching will be required, especially since the current nim.conf on master statically builds. + echo '--passC:"-Wno-incompatible-pointer-types"' >> nim.cfg + echo '--passC:"-Wl,-z,relro,-z,now"' >> nim.cfg # Build with full relro (Relocation Read-Only) +} build() { - cd auto-editor-$pkgver - python -m build --wheel --no-isolation + cd ${pkgname}-${pkgver} + + nimble make } package() { - cd auto-editor-$pkgver + cd ${pkgname}-${pkgver} - python -m installer --destdir="$pkgdir" dist/*.whl - - install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + install -Dm755 "./auto-editor" "${pkgdir}/usr/bin/auto-editor" } + +# vim: ft=sh ts=2 sw=2 et