diff options
author | Deposite Pirate | 2018-09-17 11:16:16 +0200 |
---|---|---|
committer | Deposite Pirate | 2018-09-17 11:16:16 +0200 |
commit | f590ac14a7da6f8c400dd5b5c0cfa91bb289c99d (patch) | |
tree | df371091d0f895a44033608850a52e435eaf6da5 /my_basic-git/PKGBUILD | |
parent | 803557f1fbf8171013272c77dd28e1355b22f6df (diff) |
Add my_basic-git.
Diffstat (limited to 'my_basic-git/PKGBUILD')
-rw-r--r-- | my_basic-git/PKGBUILD | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/my_basic-git/PKGBUILD b/my_basic-git/PKGBUILD new file mode 100644 index 0000000..e1b7611 --- /dev/null +++ b/my_basic-git/PKGBUILD @@ -0,0 +1,48 @@ +# Maintainer: Deposite Pirate <dpirate at metalpunks dot info> + +_pkgname=my_basic +pkgname=$_pkgname-git +pkgver=r1035.g685d352 +pkgrel=1 +pkgdesc="BASIC interpreter" +arch=('i686' 'x86_64') +url="https://paladin-t.github.io/my_basic" +license=('MIT') +source=("$pkgname::git+https://github.com/paladin-t/$_pkgname" + "$_pkgname-makefile.patch") +sha256sums=('SKIP' + '3ef06138e5403c16260897dcb7522cb3caea4ca182d65e0a1acf50693a6a8cf5') + +pkgver() { + cd "${pkgname}" + printf "r%s.g%s" \ + "$(git rev-list --count HEAD)" \ + "$(git rev-parse --short HEAD)" +} + +prepare() { + cd "${pkgname}" + + # Patch CFLAGS + patch -p1 -i "${srcdir}/${_pkgname}-makefile.patch" +} + +build() { + cd "${pkgname}" + make CFLAGS="${CFLAGS}" +} + +package() { + cd "${pkgname}" + + install -Dm755 output/my_basic_bin "${pkgdir}/usr/bin/${_pkgname}" + + install -dm755 "${pkgdir}/usr/share/doc/${_pkgname}/sample/yard" + + install -m644 HISTORY *.{pdf,html} \ + "${pkgdir}/usr/share/doc/${_pkgname}" + install -m644 sample/{README*,*.bas} \ + "${pkgdir}/usr/share/doc/${_pkgname}/sample" + install -m644 sample/yard/{README*,*.bas} \ + "${pkgdir}/usr/share/doc/${_pkgname}/sample/yard" +} |