2014-09-29 04:29:50 +00:00
|
|
|
# PKGBUILD for libAthena
|
2014-09-29 04:48:34 +00:00
|
|
|
_pkgname=libathena
|
2014-09-29 04:29:50 +00:00
|
|
|
pkgname=$_pkgname-git
|
2021-04-12 23:39:36 +00:00
|
|
|
pkgver=@ATHENA_VERSION_STRING@
|
2015-08-14 03:21:49 +00:00
|
|
|
pkgrel=1
|
2014-09-29 04:29:50 +00:00
|
|
|
pkgdesc="Basic cross platform IO library"
|
|
|
|
arch=('i686' 'x86_64')
|
2015-08-03 01:42:47 +00:00
|
|
|
source=("${pkgname%-*}::git+https://github.com/libAthena/Athena.git")
|
2014-09-29 05:42:29 +00:00
|
|
|
options=(staticlibs)
|
2015-06-17 00:25:48 +00:00
|
|
|
license="MIT"
|
2015-07-08 20:21:50 +00:00
|
|
|
makedepends=('git cmake sed')
|
2014-09-29 04:29:50 +00:00
|
|
|
md5sums=('SKIP')
|
|
|
|
sha256sums=('SKIP')
|
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd "$srcdir/$_pkgname"
|
|
|
|
git describe --tags | sed 's|-|.|g'
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$srcdir/$_pkgname"
|
2015-07-09 01:29:08 +00:00
|
|
|
mkdir -p build
|
|
|
|
cd build
|
2015-07-14 20:47:00 +00:00
|
|
|
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$pkgdir/usr" ..
|
2015-07-08 20:21:50 +00:00
|
|
|
make
|
2014-09-29 04:29:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2015-07-09 01:08:29 +00:00
|
|
|
cd "$srcdir/$_pkgname/build"
|
2015-07-08 20:21:50 +00:00
|
|
|
make install
|
2014-09-29 04:29:50 +00:00
|
|
|
}
|
|
|
|
|