From d9b7151487a8b905f80132d79fe9eebd22586b6e Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Thu, 13 Aug 2015 17:21:49 -1000 Subject: [PATCH] remade PKGBUILD as PKGBUILD.in (configured by CMake) --- CMakeLists.txt | 1 + PKGBUILD => PKGBUILD.in | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) rename PKGBUILD => PKGBUILD.in (94%) diff --git a/CMakeLists.txt b/CMakeLists.txt index e98dd80..22ab505 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -178,6 +178,7 @@ if(WIN32 AND NOT CYGWIN) install(FILES Athena.ico DESTINATION ${INSTALL_LIB_DIR} COMPONENT Athena) elseif(UNIX) configure_file(libAthena.pc.in libAthena.pc @ONLY) +configure_file(PKGBUILD.in ${CMAKE_CURRENT_SOURCE_DIR}/PKGBUILD @ONLY) install(FILES ${PROJECT_BINARY_DIR}/libAthena.pc DESTINATION ${INSTALL_LIB_DIR}/pkgconfig COMPONENT Athena) endif() diff --git a/PKGBUILD b/PKGBUILD.in similarity index 94% rename from PKGBUILD rename to PKGBUILD.in index 7cf3166..9a27d4e 100644 --- a/PKGBUILD +++ b/PKGBUILD.in @@ -1,7 +1,8 @@ # PKGBUILD for libAthena _pkgname=libathena pkgname=$_pkgname-git -pkgver=2.3.0 +pkgver=@ATHENA_VERSION@ +pkgrel=1 pkgdesc="Basic cross platform IO library" arch=('i686' 'x86_64') source=("${pkgname%-*}::git+https://github.com/libAthena/Athena.git")