diff options
-rw-r--r-- | pcr/connman-ui-git/PKGBUILD | 34 | ||||
-rw-r--r-- | pcr/rbenv/PKGBUILD | 41 | ||||
-rw-r--r-- | pcr/rbenv/rbenv.install | 10 |
3 files changed, 85 insertions, 0 deletions
diff --git a/pcr/connman-ui-git/PKGBUILD b/pcr/connman-ui-git/PKGBUILD new file mode 100644 index 000000000..e9296fa76 --- /dev/null +++ b/pcr/connman-ui-git/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: freaj <freaj@riseup.net> +# Maintainer (Arch) Bertrand Bonnefoy-Claudet <bertrandbc@gmail.com> + +pkgname=connman-ui-git +pkgver=r25.b0a09f9 +pkgrel=1 +pkgdesc="A full-featured GTK based trayicon UI for ConnMan (git version)" +arch=('i686' 'x86_64') +url="https://github.com/tbursztyka/connman-ui" +license=('GPL2') +depends=('connman' 'gtk3') +makedepends=('git' 'intltool') +source=("git+https://github.com/tbursztyka/connman-ui.git") +md5sums=('SKIP') + +_gitroot="connman-ui" + +pkgver() { + cd "$srcdir/$_gitroot" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "$srcdir/$_gitroot" + ./autogen.sh + ./configure --prefix=/usr + make +} + +package() { + cd "$srcdir/$_gitroot" + make PREFIX=/usr DESTDIR="$pkgdir" install +} + diff --git a/pcr/rbenv/PKGBUILD b/pcr/rbenv/PKGBUILD new file mode 100644 index 000000000..a8655df1b --- /dev/null +++ b/pcr/rbenv/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer : Aurélien Desbrières <aurelien@hackers.camp> +# Contributor: Vladimir Chizhov <jagoterr@gmail.com> +# Contributor: Jochen Schalanda <jochen+aur (-AT-) schalanda.name> +# Contributor: Ichimonji10 <Ichimonji10@gmail.com> +pkgname=rbenv +pkgver=0.4.0 +pkgrel=1 +pkgdesc="Simple Ruby version manager" +arch=('any') +url="https://github.com/sstephenson/rbenv" +license=('MIT') +depends=() +optdepends=('ruby-build') +conflicts=('rbenv-git') +install="rbenv.install" +noextract=("v${pkgver}") +source=("https://github.com/sstephenson/rbenv/tarball/v${pkgver}") + +build() { + cd $srcdir + + tar -x --strip-components 1 -zf "v$pkgver" +} + +package() { + cd $srcdir + + mkdir -p $pkgdir/usr/bin + mkdir -p $pkgdir/usr/share/doc/$pkgname + mkdir -p $pkgdir/usr/share/licenses/$pkgname + mkdir -p $pkgdir/usr/lib/rbenv/completions + mkdir -p $pkgdir/usr/lib/rbenv/libexec + + install -m 644 ./README.md $pkgdir/usr/share/doc/$pkgname + install -m 644 ./LICENSE $pkgdir/usr/share/licenses/$pkgname + install -m 644 ./completions/* $pkgdir/usr/lib/rbenv/completions/ + install -m 755 ./libexec/* $pkgdir/usr/lib/rbenv/libexec/ + + ln -s /usr/lib/rbenv/libexec/rbenv $pkgdir/usr/bin/ +} + diff --git a/pcr/rbenv/rbenv.install b/pcr/rbenv/rbenv.install new file mode 100644 index 000000000..49685824d --- /dev/null +++ b/pcr/rbenv/rbenv.install @@ -0,0 +1,10 @@ +post_install() { + echo 'Your shell must be initialized before rbenv will function correctly.' + echo 'Run the following, and consider adding it to your ~/.bashrc:' + echo ' eval "$(rbenv init -)"' +} + +post_remove() { + echo 'Remove the following from your ~/.bashrc, if present:' + echo ' eval "$(rbenv init -)"' +} |