blob: 657e2994293ad9b8231cca3e947d5f599e9a9429 (
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
|
# shellcheck shell=bash disable=SC2034,SC2154
# Maintainer: Wu Zhenyu <wuzhenyu@ustc.edu>
pkgname=adobe-bin2c-git
pkgver=r28.4300880
pkgrel=1
pkgdesc="Convert to/Embed binary files in C source files, quickly and efficiently."
arch=(any)
url=https://github.com/adobe/bin2c
license=(Apache)
provides=(bin2c)
conflicts=(bin2c)
source=("git+$url")
sha256sums=(SKIP)
pkgver() {
cd "$srcdir/bin2c" || return 1
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/bin2c" || return 1
make
}
package() {
cd "$srcdir/bin2c" || return 1
install -D "build/bin2c" -t "$pkgdir/usr/bin"
}
|