summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3d41f4ca24866ae44377467c00640139360e2383 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Maintainer: gt <AT> notfoss.com

pkgname="dex-editor-git"
pkgver="1889.b1f65ce"
pkgrel="1"
pkgdesc="A small and lightweight command line based text editor."
arch=("i686" "x86_64")
url="http://github.com/tihirvon/dex"
license=("GPL2")
depends=("glibc" "ncurses")
makedepends=("git")
source=("$pkgname"::"git+https://github.com/tihirvon/dex.git")
md5sums=("SKIP")

pkgver() {
    cd "$pkgname"
    # use the total number of commits + SHA-1 (first 7 characters) of the last commit
    echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

build() {
    cd "$pkgname"
    make prefix=/usr DESTDIR="$pkgdir"
}

package() {
    cd "$pkgname"
    make prefix=/usr DESTDIR="$pkgdir" install
}