diff options
author | Alex Szczuczko | 2015-10-31 19:44:07 +0000 |
---|---|---|
committer | Alex Szczuczko | 2015-10-31 19:44:07 +0000 |
commit | d2cfe16b5d7bb28d956baeef5b77effc54f08646 (patch) | |
tree | cb0476d860a4bb40be00f3b7e827ef408fb64b45 | |
download | aur-d2cfe16b5d7bb28d956baeef5b77effc54f08646.tar.gz |
Import from aur3 archive, rewrite for better integration
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | PKGBUILD | 59 | ||||
-rw-r--r-- | ceylon.install | 16 |
4 files changed, 98 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..e33cc3d9eede --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = ceylon + pkgdesc = A powerful statically typed language for writing large programs in groups + pkgver = 1.2.0 + pkgrel = 1 + url = http://ceylon-lang.org/ + install = ceylon.install + arch = any + license = Apache + license = custom:GPL-CP + license = LGPL + depends = java-environment>=7 + depends = bash + optdepends = nodejs: for JavaScript interoperability + source = http://downloads.ceylon-lang.org/cli/ceylon-1.2.0.zip + sha256sums = 2e3b50e3e80ea3a356d0d62a2cff5b59104c591aa06387e55cd34a10d52c2919 + +pkgname = ceylon + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..5a46b3be4aac --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +*.swp +*.zip +*.tar.xz +/pkg +/src diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..9c43700bd655 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,59 @@ +# Maintainer: Alex Szczuczko <alex@szc.ca> +# Contributor: TDY <tdy.aur@gmail.com> + +pkgname=ceylon +pkgver=1.2.0 +pkgrel=1 +pkgdesc="A powerful statically typed language for writing large programs in groups" +arch=("any") +url="http://ceylon-lang.org/" +license=("Apache" "custom:GPL-CP" "LGPL") +install="${pkgname}.install" +depends=("java-environment>=7" "bash") +optdepends=("nodejs: for JavaScript interoperability") +source=("http://downloads.ceylon-lang.org/cli/$pkgname-$pkgver.zip") +sha256sums=("2e3b50e3e80ea3a356d0d62a2cff5b59104c591aa06387e55cd34a10d52c2919") + +package() { + cd "$srcdir/$pkgname-$pkgver" + + # + # Main files + # + + # General + install -dm755 "$pkgdir/usr/share/java/$pkgname/" + cp -a contrib bin doc lib repo samples templates "$pkgdir/usr/share/java/$pkgname/" + find "$pkgdir/usr/share/java/$pkgname/" -type d -print0 | xargs -0 chmod 755 + find "$pkgdir/usr/share/java/$pkgname/" -type f -print0 | xargs -0 chmod 644 + + # Bin + find "$pkgdir/usr/share/java/$pkgname/" -type f -name '*.bat' -print0 | xargs -0 rm + chmod 755 "$pkgdir/usr/share/java/$pkgname/bin/ceylon" + + # + # System integration + # + + # Bin + install -dm755 "$pkgdir/usr/bin/" + ln -s "/usr/share/java/$pkgname/bin/ceylon" "$pkgdir/usr/bin/$pkgname" + + # Completion + install -dm755 "$pkgdir/usr/share/bash-completion/completions/" + ln -s "/usr/share/java/$pkgname/contrib/scripts/ceylon-completion.bash" "$pkgdir/usr/share/bash-completion/completions/$pkgname" + + # Doc + install -dm755 "$pkgdir/usr/share/doc/" + ln -s "/usr/share/java/$pkgname/doc/" "$pkgdir/usr/share/doc/$pkgname" + # Man + install -dm755 "$pkgdir/usr/share/" + mv "$pkgdir/usr/share/java/$pkgname/doc/man" "$pkgdir/usr/share/" + # Info + install -dm755 "$pkgdir/usr/share/" + mv "$pkgdir/usr/share/java/$pkgname/doc/en/spec/info" "$pkgdir/usr/share/" + + # License + install -Dm644 LICENSE-GPL-CP "$pkgdir/usr/share/licenses/$pkgname/GPL-CP" + install -Dm644 NOTICE "$pkgdir/usr/share/licenses/$pkgname/NOTICE" +} diff --git a/ceylon.install b/ceylon.install new file mode 100644 index 000000000000..27d944cf0947 --- /dev/null +++ b/ceylon.install @@ -0,0 +1,16 @@ +info_dir=usr/share/info +info_files=("ceylon-spec.info" "ceylon-spec.info-1" "ceylon-spec.info-2") + +post_upgrade() { + [ -x usr/bin/install-info ] || return 0 + for f in ${info_files[@]}; do + usr/bin/install-info ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null + done +} + +pre_remove() { + [ -x usr/bin/install-info ] || return 0 + for f in ${info_files[@]}; do + usr/bin/install-info --delete ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null + done +} |