diff options
author | Lolix | 2019-06-25 00:23:58 +0200 |
---|---|---|
committer | Lolix | 2019-06-25 00:23:58 +0200 |
commit | e785b50f4adefce0940f20f3a3c849d49bead46f (patch) | |
tree | edb7a0773ceda199d315b5571bfe0bb7b9428e47 /PKGBUILD | |
parent | 21e1f1e0e37dc42fa0a0686c4fc7047d00dfea1f (diff) | |
download | aur-ibus-avro-git.tar.gz |
Revision
Diffstat (limited to 'PKGBUILD')
-rwxr-xr-x | PKGBUILD | 57 |
1 files changed, 27 insertions, 30 deletions
@@ -1,43 +1,40 @@ -# Maintainer: Mahmud Ridwan <m[at]hjr265[dot]me> +# Maintainer: Fabio 'Lolix' Loli <lolix@disroot.org> -> https://github.com/FabioLolix +# Contributor: Mahmud Ridwan <m[at]hjr265[dot]me> + pkgname=ibus-avro-git -pkgver=20150925 +epoch=1 +pkgver=1.0.r8.gfe50959 pkgrel=1 pkgdesc="Avro Phonetic Bangla typing for Linux" url="http://linux.omicronlab.com" -arch=('x86_64' 'i686') -license=('MPL') -depends=('ibus' 'gjs') -makedepends=('autoconf' 'automake') -install=$pkgname.install - -build() { - cd "$srcdir" - - if [ -e $pkgname ]; then - cd $pkgname - git pull - git checkout develop - else - git clone -b develop git://github.com/sarim/ibus-avro.git $pkgname - cd $pkgname - fi - - aclocal || return 1 - autoconf || return 1 +arch=(any) +license=(MPL) +depends=(ibus gjs) +makedepends=(git autoconf automake) +source=("git+https://github.com/sarim/ibus-avro") +sha256sums=('SKIP') + +pkgver() { + cd ${pkgname%-git} + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} +prepare() { + cd ${pkgname%-git} + aclocal + autoconf automake --add-missing - ./configure --prefix=/usr +} - make || return 1 +build() { + cd ${pkgname%-git} + ./configure --prefix=/usr + make } package() { - cd "$srcdir/$pkgname" - + cd ${pkgname%-git} make DESTDIR="$pkgdir" installdeb - install -Dm644 MPL-1.1.txt "$pkgdir/usr/share/licenses/$pkgname/COPYING" - - sed -i 's|<layout>bn</layout>|<layout>us</layout>|' "$pkgdir/usr/share/ibus/component/ibus-avro.xml" - rmdir "$pkgdir/usr/libexec" + sed -i 's|<layout>bn</layout>|<layout>us</layout>|' "$pkgdir/usr/share/ibus/component/ibus-avro.xml" } |