blob: 154b26b334cf3d49c4e15c60e29b12e8f19d62e2 (
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
|
# Maintainer: noraj <printf %s 'YWxleGFuZHJlLnphbm5pQGV1cm9wZS5jb20='|base64 -d>
pkgname=unisec
_gemname=$pkgname
pkgver=0.0.6
pkgrel=1
pkgdesc='Unicode Security Toolkit.'
arch=('any')
url='https://noraj.github.io/unisec'
license=('MIT')
depends=('ruby')
makedepends=('git' 'ruby-bundler')
source=("https://github.com/noraj/$pkgname/archive/refs/tags/$pkgver.tar.gz")
sha512sums=('5922fde428d93ad12df1ade61d188d5f4e8731d704a824e69b7f8beeb7c4d4199393ad327c1b34382b7b2fba7477a78ddd38f2c2263e094ba15da68fbf6e3093')
install="$pkgname.install"
package() {
cd "$pkgname-$pkgver"
install -dm 755 "$pkgdir/usr/bin"
install -dm 755 "$pkgdir/usr/share/$pkgname"
install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname" *.md
cp -rT --no-preserve=ownership --preserve=all --no-dereference docs/ "$pkgdir/usr/share/doc/$pkgname"
install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
rm -rf docs/ *.md LICENSE .github/ docs-tools/ test/ .* Rakefile
cp --no-preserve=ownership -a * "$pkgdir/usr/share/$pkgname/"
cat > "$pkgdir/usr/bin/$pkgname" << EOF
#!/bin/sh
cd /usr/share/$pkgname
bundle exec ruby bin/$pkgname "\$@"
EOF
chmod +x "$pkgdir"/usr/bin/*
}
|