blob: 54ff019c20776786cf417493210b50172d5c0879 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Maintainer: soloturn@gmail.com
_npmname=editly
_basename=nodejs-$_npmname
pkgname="$_basename-git"
pkgver=0.11.1_git
pkgrel=0
pkgdesc='create video from a set of clips, images and titles, NLE, non-linear video editing'
arch=('any')
url='https://github.com/mifi/editly'
license=('MIT')
depends=('ffmpeg' 'nodejs')
makedepends=('npm')
options=(!emptydirs)
conflicts=("$_basename")
provides=("$_basename")
package() {
npm install --user root -g --prefix="${pkgdir}"/usr git@github.com:mifi/editly.git#master
install -d -m755 "${pkgdir}/usr/share/licenses/${pkgname}"
ln -s "../../../lib/node_modules/${_npmname}/LICENSE" \
"${pkgdir}/usr/share/licenses/${pkgname}"
# Clean up
find "${pkgdir}" -name "package.json" -exec sed -e "s|${pkgdir}||g" -e "s|${srcdir}||g" -i {} \; \
-or -name ".*" -type f -exec rm '{}' \; \
-or -name ".*" -type d -prune -exec rm -r '{}' \; \
-or -name "benchmark" -type d -prune -exec rm -r '{}' \; \
-or -name "man" -type d -prune -exec rm -r '{}' \; \
-or -name "test" -type d -prune -exec rm -r '{}' \; \
-or -name "tests" -type d -prune -exec rm -r '{}' \; \
-or ! -type l -perm /022 -exec chmod g-w,o-w '{}' \;
}
# vim:set ts=2 sw=2 et:
|