blob: 35caba7829539ff8028d42b8dc62acda1ccaa52b (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
# Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com>
pkgbase=l-smash-git
pkgname=(
'l-smash-git'
'lib32-l-smash-git'
)
pkgver=2.18.0.10.g2c0696c
pkgrel=1
arch=('x86_64')
url='http://l-smash.github.io/l-smash'
license=('custom:l-smash')
makedepends=(
'obuparse-git'
'lib32-obuparse-git'
'git'
)
source=('git+https://github.com/vimeo/l-smash.git')
sha256sums=('SKIP')
options=('debug')
pkgver() {
cd l-smash
echo "$(git describe --long --tags | tr - . | tr -d v)"
}
prepare() {
mkdir -p build{32,64}
}
build() {
cd "${srcdir}/build64"
../l-smash/configure \
--prefix=/usr \
--enable-shared \
--disable-static \
--extra-cflags="${CFLAGS}" \
--extra-ldflags="${LDFLAGS}"
make
export PKG_CONFIG_PATH=/usr/lib32/pkgconfig
cd "${srcdir}/build32"
../l-smash/configure \
--prefix=/usr \
--libdir='${exec_prefix}/lib32' \
--enable-shared \
--disable-static \
--extra-cflags="-m32 ${CFLAGS}" \
--extra-ldflags="-m32 ${LDFLAGS}"
make lib
}
package_l-smash-git() {
pkgdesc='MP4 muxer and other tools. (GIT Version)'
depends=(
'obuparse-git' 'libobuparse.so'
)
provides=(
'l-smash'
'liblsmash.so'
"l-smash=${pkgver}"
)
conflicts=('l-smash')
make -C build64 DESTDIR="${pkgdir}" install
install -Dm644 l-smash/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
package_lib32-l-smash-git() {
pkgdesc='MP4 muxer and other tools. (GIT Version) (32-bits)'
depends=(
'lib32-obuparse-git' 'libobuparse.so'
"l-smash=${pkgver}"
)
provides=(
'lib32-l-smash'
'liblsmash.so'
)
conflicts=('lib32-l-smash')
make -C build32 DESTDIR="${pkgdir}" install-lib
rm -fr "${pkgdir}/usr/include"
install -Dm644 l-smash/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|