blob: cb690b3c02e9eec8d2c5a1f817c09d5930054172 (
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
|
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=luasrcdiet
pkgver=0.3.0
pkgrel=0
pkgdesc="Compresses Lua source code by removing unnecessary characters"
url="https://github.com/jirutka/luasrcdiet"
arch="noarch"
license="MIT"
depends="lua"
makedepends="lua-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/jirutka/$pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"
options="!check" # upstream does not provide tests yet
package() {
local lmod_dir="$(pkgconf --variable=INSTALL_LMOD lua)"
cd "$builddir"
mkdir -p "$pkgdir"/$lmod_dir
cp -r $pkgname "$pkgdir"/$lmod_dir/
install -D -m 755 bin/$pkgname "$pkgdir"/usr/bin/$pkgname
}
sha512sums="3703c0dbcff7610ab375a41971ab3a7cc3db86b0b49dec52f3f9b6ca7ebea7b84dd144f8dc0b042453f6b1b880b61fe8a756231a1bed3d304fda7d2a831a49ab luasrcdiet-0.3.0.tar.gz"
|