blob: f6dc87c487c960e67219190e8c0a6393aebd6640 (
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
|
# Maintainer: michaelkuc6 <michaelkuc6 at gmail dot com>
_pkgname=protodata
pkgname="${_pkgname}-git"
pkgver=r125.51de27b
pkgrel=1
pkgdesc="Protodata is a language for describing binary data, originally written for prototyping and reverse engineering binary file formats."
arch=('x86_64')
url="https://github.com/evincarofautumn/protodata"
license=('MIT')
depends=()
makedepends=('make')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=(
"${_pkgname}::git+https://github.com/evincarofautumn/protodata.git"
'nested_exception.h.patch'
)
sha256sums=(
'SKIP'
'96cffa0a1da8f5a1a0942e52fda7526b6b2c1dc142fd164460b6671323fbb16b'
)
pkgver() {
cd "${srcdir}/${_pkgname}"
( set -o pipefail
git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
prepare() {
cd "${srcdir}/${_pkgname}"
patch -p0 <../nested_exception.h.patch
}
build() {
cd "${srcdir}/${_pkgname}"
make
}
package() {
install -m755 -D "${srcdir}/${_pkgname}/pd" "${pkgdir}/usr/bin/pd"
install -m644 -D "${srcdir}/${_pkgname}/COPYING.md" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
}
|