forked from enlightenment/efl
pkgbuild: follow AUR elemetary-git version naming.
This commit is contained in:
parent
4cf069ede9
commit
4471e2f7ec
|
@ -743,7 +743,6 @@ config/mobile/Makefile
|
|||
$po_makefile_in
|
||||
cmakeconfig/ElementaryConfig.cmake
|
||||
cmakeconfig/ElementaryConfigVersion.cmake
|
||||
pkgbuild/PKGBUILD
|
||||
])
|
||||
|
||||
AC_OUTPUT
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/PKGBUILD
|
||||
/pkg
|
||||
/src
|
||||
/*.tar.xz
|
||||
|
|
|
@ -1,15 +1,34 @@
|
|||
# Maintainer: Enlightenment Developers <enlightenment-devel@enlightenment.org>
|
||||
pkgname=('elementary' 'elementary_test' 'elementary_doc')
|
||||
pkgver=@VERSION@
|
||||
pkgname=elementary-git
|
||||
_pkgname=${pkgname%-*}
|
||||
true && pkgname=('elementary-git' 'elementary_test-git' 'elementary_doc-git')
|
||||
pkgver=1.8.99.8967.a1cfce6
|
||||
pkgrel=1
|
||||
pkgdesc="Enlightenment GUI toolkit - GIT development snapshot"
|
||||
arch=('i686' 'x86_64' 'arm')
|
||||
url="http://www.enlightenment.org"
|
||||
license=('LGPL2.1' 'CCPL:cc-by-sa')
|
||||
makedepends=('doxygen' 'imagemagick')
|
||||
depends=('efl' 'evas_generic_loaders')
|
||||
optdepends=('emotion_generic_players')
|
||||
makedepends=('doxygen' 'imagemagick' 'git')
|
||||
depends=('efl-git')
|
||||
[[ ! $(pacman -T ewebkit-svn) ]] && depends+=('ewebkit-svn') # webkit-efl support is detected at build time
|
||||
[[ ! $(pacman -T elocation-git) ]] && depends+=('elocation-git') # elocation support is detected at build time
|
||||
[[ ! $(pacman -T libeweather-git) ]] && depends+=('libeweather-git') # eweather support is detected at build time
|
||||
optdepends=('emotion_generic_players' 'evas_generic_loaders')
|
||||
options=('!libtool' 'debug')
|
||||
provides=('elementary')
|
||||
|
||||
pkgver() {
|
||||
cd "../.."
|
||||
|
||||
for _i in v_maj v_min v_mic; do
|
||||
local v_ver=$v_ver.$(grep -m 1 $_i configure.ac | sed 's/m4//' | grep -o "[[:digit:]]*")
|
||||
done
|
||||
|
||||
v_ver=$(awk -F , -v v_ver=${v_ver#.} '/^AC_INIT/ {gsub(/v_ver/, v_ver); gsub(/[\[\] -]/, ""); print $2}' configure.ac)
|
||||
|
||||
printf "$v_ver.$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "../.."
|
||||
export CFLAGS="$CFLAGS -fvisibility=hidden -fomit-frame-pointer"
|
||||
|
@ -25,7 +44,7 @@ build() {
|
|||
# make -k check
|
||||
#}
|
||||
|
||||
package_elementary() {
|
||||
package_elementary-git() {
|
||||
cd "../.."
|
||||
make -j1 DESTDIR="$pkgdir/" install
|
||||
install -Dm644 README "$pkgdir/usr/share/$pkgname/README"
|
||||
|
@ -43,7 +62,7 @@ package_elementary() {
|
|||
rm -rf "$pkgdir/usr/share/elementary/"{examples,images,objects}
|
||||
}
|
||||
|
||||
package_elementary_test() {
|
||||
package_elementary_test-git() {
|
||||
pkgdesc="Test application for Elementary"
|
||||
depends=('elementary')
|
||||
|
||||
|
@ -58,7 +77,7 @@ package_elementary_test() {
|
|||
rm -rf "$pkgdir/usr/share/"{icons,locale}
|
||||
}
|
||||
|
||||
package_elementary_doc() {
|
||||
package_elementary_doc-git() {
|
||||
pkgdesc="Documentation for Elementary"
|
||||
arch=('any')
|
||||
unset depends optdepends
|
Loading…
Reference in New Issue