2013-06-07 04:40:28 -07:00
|
|
|
# Maintainer: Enlightenment Developers <enlightenment-devel@enlightenment.org>
|
2014-01-09 02:01:31 -08:00
|
|
|
pkgname=('elementary' 'elementary_test' 'elementary_doc')
|
|
|
|
[[ -d ../.git ]] && pkgname=('elementary-git' 'elementary_test-git' 'elementary_doc-git')
|
2014-02-05 23:04:37 -08:00
|
|
|
pkgver=1.8.99.9334.01199ad
|
2013-06-07 04:40:28 -07:00
|
|
|
pkgrel=1
|
PKGBUILD cleanup
pkgdesc should not include the name of the package (was misspelled anyway)
Licenses were wrong, LGPL2.1, not LGPL2 and missing CCPL
Doesn't need to provide itself or elementary-svn
Shouldn't override user selected options, if they manually add !strip,
!docs, or !zipman, that should be respected unless there's a specific
reason the option needs to be as specified
Shouldn't override user build flags, if they manaually change -g or
-O2, that should be respected unless there's a specific reason that
exact build flag is required.
Doesn't need to disable-static, there are none anyway
make doc should be run in the build function
Don't need to rm -rf $pkgdir/usr, each package function has it's own
$pkgdir and they are all cleared each time makepkg is run
All paths which include a variable should be quoted
Should not put another copy of LGPL2.1 on the system, it's in common
for a reason
2013-06-12 22:25:49 -07:00
|
|
|
pkgdesc="Enlightenment GUI toolkit - GIT development snapshot"
|
2013-06-07 04:40:28 -07:00
|
|
|
arch=('i686' 'x86_64' 'arm')
|
|
|
|
url="http://www.enlightenment.org"
|
PKGBUILD cleanup
pkgdesc should not include the name of the package (was misspelled anyway)
Licenses were wrong, LGPL2.1, not LGPL2 and missing CCPL
Doesn't need to provide itself or elementary-svn
Shouldn't override user selected options, if they manually add !strip,
!docs, or !zipman, that should be respected unless there's a specific
reason the option needs to be as specified
Shouldn't override user build flags, if they manaually change -g or
-O2, that should be respected unless there's a specific reason that
exact build flag is required.
Doesn't need to disable-static, there are none anyway
make doc should be run in the build function
Don't need to rm -rf $pkgdir/usr, each package function has it's own
$pkgdir and they are all cleared each time makepkg is run
All paths which include a variable should be quoted
Should not put another copy of LGPL2.1 on the system, it's in common
for a reason
2013-06-12 22:25:49 -07:00
|
|
|
license=('LGPL2.1' 'CCPL:cc-by-sa')
|
2014-01-09 02:01:31 -08:00
|
|
|
makedepends=('doxygen' 'imagemagick')
|
|
|
|
[[ -d ../.git ]] && makedepends+=('git')
|
|
|
|
depends=('efl')
|
|
|
|
[[ ! $(pacman -T ewebkit) ]] && depends+=('ewebkit') # webkit-efl support is detected at build time
|
2013-12-11 18:39:29 -08:00
|
|
|
[[ ! $(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')
|
2014-01-09 02:01:31 -08:00
|
|
|
options=('debug')
|
2013-12-11 18:39:29 -08:00
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd "../.."
|
|
|
|
|
2014-01-09 02:01:31 -08:00
|
|
|
if [[ -d .git ]]; then
|
2014-01-23 19:08:33 -08:00
|
|
|
local efl_version=$(grep -m 1 EFL_VERSION configure.ac | grep -o "[[:digit:]]*" | tr '\n' '.')
|
|
|
|
efl_version=$(awk -F , -v efl_version=${efl_version%.} '/^AC_INIT/ {gsub(/efl_version/, efl_version); gsub(/[\[\] -]/, ""); print $2}' configure.ac)
|
|
|
|
printf "$efl_version.$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
|
2014-01-09 02:01:31 -08:00
|
|
|
else
|
|
|
|
./configure --version | awk '/^elementary/ {gsub("-", ""); print $NF}'
|
|
|
|
fi
|
2013-12-11 18:39:29 -08:00
|
|
|
}
|
|
|
|
|
2013-06-07 04:40:28 -07:00
|
|
|
build() {
|
|
|
|
cd "../.."
|
PKGBUILD cleanup
pkgdesc should not include the name of the package (was misspelled anyway)
Licenses were wrong, LGPL2.1, not LGPL2 and missing CCPL
Doesn't need to provide itself or elementary-svn
Shouldn't override user selected options, if they manually add !strip,
!docs, or !zipman, that should be respected unless there's a specific
reason the option needs to be as specified
Shouldn't override user build flags, if they manaually change -g or
-O2, that should be respected unless there's a specific reason that
exact build flag is required.
Doesn't need to disable-static, there are none anyway
make doc should be run in the build function
Don't need to rm -rf $pkgdir/usr, each package function has it's own
$pkgdir and they are all cleared each time makepkg is run
All paths which include a variable should be quoted
Should not put another copy of LGPL2.1 on the system, it's in common
for a reason
2013-06-12 22:25:49 -07:00
|
|
|
export CFLAGS="$CFLAGS -fvisibility=hidden -fomit-frame-pointer"
|
2013-11-07 03:05:01 -08:00
|
|
|
[[ -e Makefile ]] && make clean distclean
|
2014-01-09 02:01:31 -08:00
|
|
|
[[ -e autogen.sh ]] && _configure=autogen.sh || _configure=configure
|
2014-02-05 23:04:37 -08:00
|
|
|
./$_configure --prefix=/usr --disable-static --with-elementary-web-backend=none
|
2013-06-07 04:40:28 -07:00
|
|
|
make
|
PKGBUILD cleanup
pkgdesc should not include the name of the package (was misspelled anyway)
Licenses were wrong, LGPL2.1, not LGPL2 and missing CCPL
Doesn't need to provide itself or elementary-svn
Shouldn't override user selected options, if they manually add !strip,
!docs, or !zipman, that should be respected unless there's a specific
reason the option needs to be as specified
Shouldn't override user build flags, if they manaually change -g or
-O2, that should be respected unless there's a specific reason that
exact build flag is required.
Doesn't need to disable-static, there are none anyway
make doc should be run in the build function
Don't need to rm -rf $pkgdir/usr, each package function has it's own
$pkgdir and they are all cleared each time makepkg is run
All paths which include a variable should be quoted
Should not put another copy of LGPL2.1 on the system, it's in common
for a reason
2013-06-12 22:25:49 -07:00
|
|
|
make doc
|
2013-06-07 04:40:28 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
#check() {
|
|
|
|
# cd "../.."
|
|
|
|
# make -k check
|
|
|
|
#}
|
|
|
|
|
2014-01-09 02:01:31 -08:00
|
|
|
package_elementary() {
|
2013-06-07 04:40:28 -07:00
|
|
|
cd "../.."
|
|
|
|
make -j1 DESTDIR="$pkgdir/" install
|
2014-01-09 02:01:31 -08:00
|
|
|
install -Dm644 README "$pkgdir/usr/share/doc/${pkgname%-git}/README"
|
|
|
|
install -Dm644 NEWS "$pkgdir/usr/share/doc/${pkgname%-git}/NEWS"
|
|
|
|
install -Dm644 ChangeLog "$pkgdir/usr/share/doc/${pkgname%-git}/ChangeLog"
|
|
|
|
install -Dm644 AUTHORS "$pkgdir/usr/share/doc/${pkgname%-git}/AUTHORS"
|
|
|
|
install -Dm644 COMPLIANCE "$pkgdir/usr/share/doc/${pkgname%-git}/COMPLIANCE"
|
PKGBUILD cleanup
pkgdesc should not include the name of the package (was misspelled anyway)
Licenses were wrong, LGPL2.1, not LGPL2 and missing CCPL
Doesn't need to provide itself or elementary-svn
Shouldn't override user selected options, if they manually add !strip,
!docs, or !zipman, that should be respected unless there's a specific
reason the option needs to be as specified
Shouldn't override user build flags, if they manaually change -g or
-O2, that should be respected unless there's a specific reason that
exact build flag is required.
Doesn't need to disable-static, there are none anyway
make doc should be run in the build function
Don't need to rm -rf $pkgdir/usr, each package function has it's own
$pkgdir and they are all cleared each time makepkg is run
All paths which include a variable should be quoted
Should not put another copy of LGPL2.1 on the system, it's in common
for a reason
2013-06-12 22:25:49 -07:00
|
|
|
install -Dm644 COPYING.images "$pkgdir/usr/share/licenses/$pkgname/COPYING.images"
|
|
|
|
sed -n '1,/details./p' COPYING > "$pkgdir/usr/share/licenses/$pkgname/COPYING"
|
2014-01-09 02:01:31 -08:00
|
|
|
ln -s "../licenses/$pkgname/COPYING" "$pkgdir/usr/share/doc/${pkgname%-git}/COPYING"
|
|
|
|
ln -s "../licenses/$pkgname/COPYING.images" "$pkgdir/usr/share/doc/${pkgname%-git}/COPYING.images"
|
2013-11-07 03:05:01 -08:00
|
|
|
rm -rf "$pkgdir/usr/bin/"elementary_test
|
PKGBUILD cleanup
pkgdesc should not include the name of the package (was misspelled anyway)
Licenses were wrong, LGPL2.1, not LGPL2 and missing CCPL
Doesn't need to provide itself or elementary-svn
Shouldn't override user selected options, if they manually add !strip,
!docs, or !zipman, that should be respected unless there's a specific
reason the option needs to be as specified
Shouldn't override user build flags, if they manaually change -g or
-O2, that should be respected unless there's a specific reason that
exact build flag is required.
Doesn't need to disable-static, there are none anyway
make doc should be run in the build function
Don't need to rm -rf $pkgdir/usr, each package function has it's own
$pkgdir and they are all cleared each time makepkg is run
All paths which include a variable should be quoted
Should not put another copy of LGPL2.1 on the system, it's in common
for a reason
2013-06-12 22:25:49 -07:00
|
|
|
rm -rf "$pkgdir/usr/lib/elementary/modules/"{test_entry,test_map}
|
|
|
|
rm -rf "$pkgdir/usr/share/applications/elementary_test.desktop"
|
|
|
|
rm -rf "$pkgdir/usr/share/elementary/"{examples,images,objects}
|
2013-06-07 04:40:28 -07:00
|
|
|
}
|
|
|
|
|
2014-01-09 02:01:31 -08:00
|
|
|
package_elementary-git() {
|
|
|
|
provides=("elementary=$pkgver")
|
|
|
|
conflicts=('elementary')
|
|
|
|
package_elementary
|
|
|
|
}
|
|
|
|
|
|
|
|
package_elementary_test() {
|
PKGBUILD cleanup
pkgdesc should not include the name of the package (was misspelled anyway)
Licenses were wrong, LGPL2.1, not LGPL2 and missing CCPL
Doesn't need to provide itself or elementary-svn
Shouldn't override user selected options, if they manually add !strip,
!docs, or !zipman, that should be respected unless there's a specific
reason the option needs to be as specified
Shouldn't override user build flags, if they manaually change -g or
-O2, that should be respected unless there's a specific reason that
exact build flag is required.
Doesn't need to disable-static, there are none anyway
make doc should be run in the build function
Don't need to rm -rf $pkgdir/usr, each package function has it's own
$pkgdir and they are all cleared each time makepkg is run
All paths which include a variable should be quoted
Should not put another copy of LGPL2.1 on the system, it's in common
for a reason
2013-06-12 22:25:49 -07:00
|
|
|
pkgdesc="Test application for Elementary"
|
2014-01-09 02:01:31 -08:00
|
|
|
depends=(${pkgname/_test/})
|
|
|
|
unset optdepends
|
PKGBUILD cleanup
pkgdesc should not include the name of the package (was misspelled anyway)
Licenses were wrong, LGPL2.1, not LGPL2 and missing CCPL
Doesn't need to provide itself or elementary-svn
Shouldn't override user selected options, if they manually add !strip,
!docs, or !zipman, that should be respected unless there's a specific
reason the option needs to be as specified
Shouldn't override user build flags, if they manaually change -g or
-O2, that should be respected unless there's a specific reason that
exact build flag is required.
Doesn't need to disable-static, there are none anyway
make doc should be run in the build function
Don't need to rm -rf $pkgdir/usr, each package function has it's own
$pkgdir and they are all cleared each time makepkg is run
All paths which include a variable should be quoted
Should not put another copy of LGPL2.1 on the system, it's in common
for a reason
2013-06-12 22:25:49 -07:00
|
|
|
|
2013-06-07 04:40:28 -07:00
|
|
|
cd "../.."
|
|
|
|
make -j1 DESTDIR="$pkgdir/" install
|
PKGBUILD cleanup
pkgdesc should not include the name of the package (was misspelled anyway)
Licenses were wrong, LGPL2.1, not LGPL2 and missing CCPL
Doesn't need to provide itself or elementary-svn
Shouldn't override user selected options, if they manually add !strip,
!docs, or !zipman, that should be respected unless there's a specific
reason the option needs to be as specified
Shouldn't override user build flags, if they manaually change -g or
-O2, that should be respected unless there's a specific reason that
exact build flag is required.
Doesn't need to disable-static, there are none anyway
make doc should be run in the build function
Don't need to rm -rf $pkgdir/usr, each package function has it's own
$pkgdir and they are all cleared each time makepkg is run
All paths which include a variable should be quoted
Should not put another copy of LGPL2.1 on the system, it's in common
for a reason
2013-06-12 22:25:49 -07:00
|
|
|
rm -rf "$pkgdir/usr/include"
|
|
|
|
rm -rf "$pkgdir/usr/bin/"{elementary_codegen,elementary_config,elementary_quicklaunch,elementary_run,elm_prefs_cc}
|
2013-11-07 03:05:01 -08:00
|
|
|
rm -rf "$pkgdir/usr/lib/"{cmake,edje,libelementary.so*,pkgconfig}
|
|
|
|
rm -rf "$pkgdir/usr/lib/elementary/modules/"{access_output,datetime_input_ctxpopup,prefs}
|
PKGBUILD cleanup
pkgdesc should not include the name of the package (was misspelled anyway)
Licenses were wrong, LGPL2.1, not LGPL2 and missing CCPL
Doesn't need to provide itself or elementary-svn
Shouldn't override user selected options, if they manually add !strip,
!docs, or !zipman, that should be respected unless there's a specific
reason the option needs to be as specified
Shouldn't override user build flags, if they manaually change -g or
-O2, that should be respected unless there's a specific reason that
exact build flag is required.
Doesn't need to disable-static, there are none anyway
make doc should be run in the build function
Don't need to rm -rf $pkgdir/usr, each package function has it's own
$pkgdir and they are all cleared each time makepkg is run
All paths which include a variable should be quoted
Should not put another copy of LGPL2.1 on the system, it's in common
for a reason
2013-06-12 22:25:49 -07:00
|
|
|
rm -rf "$pkgdir/usr/share/applications/elementary_config.desktop"
|
|
|
|
rm -rf "$pkgdir/usr/share/elementary/"{config,examples,themes,edje_externals}
|
|
|
|
rm -rf "$pkgdir/usr/share/"{icons,locale}
|
2013-06-07 04:40:28 -07:00
|
|
|
}
|
|
|
|
|
2014-01-09 02:01:31 -08:00
|
|
|
package_elementary_test-git() {
|
|
|
|
provides=("elementary_test=$pkgver")
|
|
|
|
conflicts=('elementary_test')
|
|
|
|
package_elementary_test
|
|
|
|
}
|
|
|
|
|
|
|
|
package_elementary_doc() {
|
PKGBUILD cleanup
pkgdesc should not include the name of the package (was misspelled anyway)
Licenses were wrong, LGPL2.1, not LGPL2 and missing CCPL
Doesn't need to provide itself or elementary-svn
Shouldn't override user selected options, if they manually add !strip,
!docs, or !zipman, that should be respected unless there's a specific
reason the option needs to be as specified
Shouldn't override user build flags, if they manaually change -g or
-O2, that should be respected unless there's a specific reason that
exact build flag is required.
Doesn't need to disable-static, there are none anyway
make doc should be run in the build function
Don't need to rm -rf $pkgdir/usr, each package function has it's own
$pkgdir and they are all cleared each time makepkg is run
All paths which include a variable should be quoted
Should not put another copy of LGPL2.1 on the system, it's in common
for a reason
2013-06-12 22:25:49 -07:00
|
|
|
pkgdesc="Documentation for Elementary"
|
2013-11-07 03:05:01 -08:00
|
|
|
arch=('any')
|
|
|
|
unset depends optdepends
|
PKGBUILD cleanup
pkgdesc should not include the name of the package (was misspelled anyway)
Licenses were wrong, LGPL2.1, not LGPL2 and missing CCPL
Doesn't need to provide itself or elementary-svn
Shouldn't override user selected options, if they manually add !strip,
!docs, or !zipman, that should be respected unless there's a specific
reason the option needs to be as specified
Shouldn't override user build flags, if they manaually change -g or
-O2, that should be respected unless there's a specific reason that
exact build flag is required.
Doesn't need to disable-static, there are none anyway
make doc should be run in the build function
Don't need to rm -rf $pkgdir/usr, each package function has it's own
$pkgdir and they are all cleared each time makepkg is run
All paths which include a variable should be quoted
Should not put another copy of LGPL2.1 on the system, it's in common
for a reason
2013-06-12 22:25:49 -07:00
|
|
|
|
2013-06-07 04:40:28 -07:00
|
|
|
cd "../.."
|
2014-01-09 02:01:31 -08:00
|
|
|
mkdir -p "$pkgdir/usr/share/doc/${pkgname%-git}"
|
|
|
|
cp -a doc/html "$pkgdir/usr/share/doc/${pkgname%-git}/html"
|
|
|
|
cp -a doc/latex "$pkgdir/usr/share/doc/${pkgname%-git}/latex"
|
|
|
|
}
|
|
|
|
|
|
|
|
package_elementary_doc-git() {
|
|
|
|
package_elementary_doc
|
|
|
|
provides=("elementary_doc=$pkgver")
|
|
|
|
conflicts=('elementary_doc')
|
2013-06-07 04:40:28 -07:00
|
|
|
}
|