remade PKGBUILD as PKGBUILD.in (configured by CMake)

This commit is contained in:
Jack Andersen 2015-08-13 17:21:49 -10:00
parent 776d52e4e5
commit d9b7151487
2 changed files with 3 additions and 1 deletions

View File

@ -178,6 +178,7 @@ if(WIN32 AND NOT CYGWIN)
install(FILES Athena.ico DESTINATION ${INSTALL_LIB_DIR} COMPONENT Athena) install(FILES Athena.ico DESTINATION ${INSTALL_LIB_DIR} COMPONENT Athena)
elseif(UNIX) elseif(UNIX)
configure_file(libAthena.pc.in libAthena.pc @ONLY) 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 install(FILES ${PROJECT_BINARY_DIR}/libAthena.pc
DESTINATION ${INSTALL_LIB_DIR}/pkgconfig COMPONENT Athena) DESTINATION ${INSTALL_LIB_DIR}/pkgconfig COMPONENT Athena)
endif() endif()

View File

@ -1,7 +1,8 @@
# PKGBUILD for libAthena # PKGBUILD for libAthena
_pkgname=libathena _pkgname=libathena
pkgname=$_pkgname-git pkgname=$_pkgname-git
pkgver=2.3.0 pkgver=@ATHENA_VERSION@
pkgrel=1
pkgdesc="Basic cross platform IO library" pkgdesc="Basic cross platform IO library"
arch=('i686' 'x86_64') arch=('i686' 'x86_64')
source=("${pkgname%-*}::git+https://github.com/libAthena/Athena.git") source=("${pkgname%-*}::git+https://github.com/libAthena/Athena.git")