PKGBUILD 1.05 KB
Newer Older
1
# Maintainer: Chrysostomus @forum.manjaro.org
Bernhard Landauer's avatar
Bernhard Landauer committed
2
# Maintainer: Bernhard Landauer <oberon@manjaro.org>
3

Bernhard Landauer's avatar
Bernhard Landauer committed
4 5 6
pkgbase=manjaro-architect
pkgname=('manjaro-architect' 'manjaro-architect-launcher')
pkgver=0.7.4.r78.g86f8c83
7
pkgrel=1
Bernhard Landauer's avatar
Bernhard Landauer committed
8
pkgdesc="Manjaro CLI net-installer, forked from the Archlinux Architect"
9
arch=(any)
Bernhard Landauer's avatar
Bernhard Landauer committed
10
url="https://github.com/Chrysostomus/$pkgbase"
11
license=(GPL2)
12
depends=('bash'
Bernhard Landauer's avatar
Bernhard Landauer committed
13
         'dialog')
14
makedepends=('git')
15 16
optdepends=('maia-console'
            'terminus-font')
Bernhard Landauer's avatar
Bernhard Landauer committed
17
source=("git+$url.git#branch=master")
18
md5sums=('SKIP')
19

20
pkgver() {
Bernhard Landauer's avatar
Bernhard Landauer committed
21
    cd $pkgbase
22 23 24
    git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

Bernhard Landauer's avatar
Bernhard Landauer committed
25
build() {
Bernhard Landauer's avatar
Bernhard Landauer committed
26
    cd $pkgbase
Bernhard Landauer's avatar
Bernhard Landauer committed
27 28
	make PREFIX=/usr
}
Bernhard Landauer's avatar
Bernhard Landauer committed
29

Bernhard Landauer's avatar
Bernhard Landauer committed
30 31 32 33 34 35 36 37 38 39
package_manjaro-architect() {
    depends+=('f2fs-tools'
         'gptfdisk'
         'manjaro-architect-launcher'
         'manjaro-tools-base'
         'mhwd'
         'nilfs-utils'
         'pacman-mirrorlist'
         'parted')
    cd $pkgbase
Bernhard Landauer's avatar
Bernhard Landauer committed
40
	make PREFIX=/usr DESTDIR=${pkgdir} install
41
}
Bernhard Landauer's avatar
Bernhard Landauer committed
42 43 44 45 46

package_manjaro-architect-launcher() {
    cd $pkgbase
    install -Dm755 bin/setup $pkgdir/usr/bin/setup
}