manjaro-architect/PKGBUILD

48 lines
1.2 KiB
Bash
Raw Normal View History

# Maintainer: Chrysostomus @forum.manjaro.org
pkgname=manjaro-architect
_pkgname=aif-dev
2017-02-12 02:16:05 +00:00
pkgver=0.7.3.r5.g2be235c
2017-02-11 11:36:41 +00:00
pkgrel=1
pkgdesc="A clone of architect installer modified for manjaro"
arch=(any)
url="https://github.com/Chrysostomus/$_pkgname"
license=(GPL2)
depends=('bash'
'dialog'
2017-01-27 19:25:45 +00:00
'f2fs-tools'
'gptfdisk'
'manjaro-tools-base'
'mhwd'
'nilfs-utils'
'pacman'
'pacman-mirrorlist'
'parted')
makedepends=('git')
source=("git+$url.git")
md5sums=('SKIP')
2017-02-11 11:36:41 +00:00
pkgver() {
cd $_pkgname
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
package () {
2017-02-13 18:53:24 +00:00
_bindir=$pkgdir/usr/bin
_sharedir=$pkgdir/usr/share
2017-02-13 18:59:37 +00:00
_datadir=$_sharedir/aif
2017-02-13 18:53:24 +00:00
_launchdir=$pkgdir/usr/share
cd $_pkgname
2017-02-13 18:53:24 +00:00
install -Dm755 $pkgname $_bindir/$pkgname
install -m755 setup $_bindir/setup
install -m755 ma-launcher $_bindir/ma-launcher
mkdir -p $_datadir/{package-lists,translations}
cp -r package-lists $_datadir
cp -r translations $_datadir
install -Dm644 $pkgname.desktop $_sharedir/applications/$pkgname.desktop
install -Dm644 $pkgname.png $_sharedir/icons/hicolor/48x48/apps/$pkgname.png
install -Dm644 ma-launcher.desktop $pkgdir/etc/skel/.config/autostart/ma-launcher.desktop
}