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")