diff options
author | Erich Eckner <git@eckner.net> | 2023-03-04 22:12:45 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2023-03-04 23:21:46 +0100 |
commit | 38e2631c6be6fb0ed0b1684d6c39fb5640856d4b (patch) | |
tree | e8956b4da6819f75a04c3a2b3c305c8c02216274 /nyan-lang-git | |
parent | ca9023e7a6a1ebf31a2b4e9523433718422c3e42 (diff) | |
download | archlinuxewe-38e2631c6be6fb0ed0b1684d6c39fb5640856d4b.tar.xz |
nyan-lang-git new
Diffstat (limited to 'nyan-lang-git')
-rw-r--r-- | nyan-lang-git/.gitignore | 1 | ||||
-rwxr-xr-x | nyan-lang-git/PKGBUILD | 43 |
2 files changed, 44 insertions, 0 deletions
diff --git a/nyan-lang-git/.gitignore b/nyan-lang-git/.gitignore new file mode 100644 index 000000000..0af0ec0ce --- /dev/null +++ b/nyan-lang-git/.gitignore @@ -0,0 +1 @@ +nyan-lang-git diff --git a/nyan-lang-git/PKGBUILD b/nyan-lang-git/PKGBUILD new file mode 100755 index 000000000..335f6b9c5 --- /dev/null +++ b/nyan-lang-git/PKGBUILD @@ -0,0 +1,43 @@ +# Maintainer: Erich Eckner <arch at eckner dot net> +# Contributor: Eric Bailey <nerflad@gmail.com> + +pkgname=nyan-lang-git +pkgver=r256.7e88374 +pkgrel=1 +pkgdesc="A data description language designed for openage" +arch=('i486' 'i686' 'pentium4' 'x86_64') +url="https://github.com/SFTtech/nyan" +license=('LGPL3') +_pinned_dependencies=( + 'gcc-libs=12.2.1' + 'glibc>=2.37' +) +depends=("${_pinned_dependencies[@]}") +makedepends=('cmake' 'git') +provides=('nyan-lang') +conflicts=('nyan-lang') +source=("$pkgname::git+https://github.com/SFTtech/nyan") +md5sums=('SKIP') + +pkgver() { + cd "$pkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + cd "$srcdir/$pkgname" + mkdir -p build +} + +build() { + cd "$srcdir/$pkgname/build" + cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=/usr/lib \ + -DCMAKE_BUILD_TYPE=Release .. + make +} + +package() { + cd "$srcdir/$pkgname/build" + make DESTDIR="$pkgdir/" install +} |