blob: 219688197d48d0e553026a682476b591496711d3 (
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
|
# Maintainer: jprjr <john@jrjrtech.com>
pkgname=('lua-lualame' 'lua51-lualame' 'lua52-lualame' 'lua53-lualame')
_pkgbase='lualame'
pkgver=1.0.0
pkgrel=1
arch=('x86_64' 'i686')
url='https://github.com/jprjr/lualame'
license=('MIT')
depends=('lame')
makedepends=('cmake' 'lua' 'lua51' 'lua52' 'lua53')
source=("https://github.com/jprjr/lualame/releases/download/v${pkgver}/lualame-${pkgver}.tar.gz")
md5sums=('0fdf2299b71fcacd31580abca8943f90')
build() {
cmake -B build-lua-${pkgver}-${pkgrel} -DCMAKE_BUILD_TYPE=Release -DCMAKE_SKIP_INSTALL_RPATH=YES -DCMAKE_INSTALL_PREFIX=/usr -S "${_pkgbase}-${pkgver}"
cmake -B build-lua51-${pkgver}-${pkgrel} -DLUA_VERSION=5.1 -DCMAKE_BUILD_TYPE=Release -DCMAKE_SKIP_INSTALL_RPATH=YES -DCMAKE_INSTALL_PREFIX=/usr -S "${_pkgbase}-${pkgver}"
cmake -B build-lua52-${pkgver}-${pkgrel} -DLUA_VERSION=5.2 -DCMAKE_BUILD_TYPE=Release -DCMAKE_SKIP_INSTALL_RPATH=YES -DCMAKE_INSTALL_PREFIX=/usr -S "${_pkgbase}-${pkgver}"
cmake -B build-lua53-${pkgver}-${pkgrel} -DLUA_VERSION=5.3 -DCMAKE_BUILD_TYPE=Release -DCMAKE_SKIP_INSTALL_RPATH=YES -DCMAKE_INSTALL_PREFIX=/usr -S "${_pkgbase}-${pkgver}"
make -C build-lua-${pkgver}-${pkgrel}
make -C build-lua51-${pkgver}-${pkgrel}
make -C build-lua52-${pkgver}-${pkgrel}
make -C build-lua53-${pkgver}-${pkgrel}
}
package_lua-lualame() {
pkgdesc="Lua bindings for libmp3lame"
depends+=('lua')
make -C build-lua-${pkgver}-${pkgrel} DESTDIR="$pkgdir" install
install -Dm644 "${_pkgbase}-${pkgver}/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
package_lua51-lualame() {
pkgdesc="Lua bindings for libmp3lame for Lua 5.1"
depends+=('lua51')
make -C build-lua51-${pkgver}-${pkgrel} DESTDIR="$pkgdir" install
install -Dm644 "${_pkgbase}-${pkgver}/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
package_lua52-lualame() {
pkgdesc="Lua bindings for libmp3lame for Lua 5.2"
depends+=('lua52')
make -C build-lua52-${pkgver}-${pkgrel} DESTDIR="$pkgdir" install
install -Dm644 "${_pkgbase}-${pkgver}/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
package_lua53-lualame() {
pkgdesc="Lua bindings for libmp3lame for Lua 5.3"
depends+=('lua53')
make -C build-lua53-${pkgver}-${pkgrel} DESTDIR="$pkgdir" install
install -Dm644 "${_pkgbase}-${pkgver}/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|