blob: 716173707369b8113f8f7010f86bc2bf24ccee7a (
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
|
# Maintainer: Noah Vogt <noah@noahvogt.com>
pkgname=tibasicc-git
pkgver=1.2.r2.gc1a58bd
pkgrel=2
pkgdesc="TI-BASIC (de-)compiler written in C++ with a decent preprocessor - git version"
arch=("x86_64")
url="https://github.com/noahvogt/tibasicc.git"
license=('ISC')
makedepends=("git")
provides=(tibasicc)
conflicts=(tibasicc)
source=("git+$url")
md5sums=('SKIP')
pkgver() {
cd "${pkgname%-*}"
git describe --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "${pkgname%-*}"
make
}
package() {
cd tibasicc
mkdir -p ${pkgdir}/opt/${pkgname}
cp -rf doc ${pkgdir}/opt/${pkgname}
make PREFIX="$pkgdir/usr" install
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
}
|