summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 739b09de0bf5afb516b0282c243ccb7f7b147d47 (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: Benjamin Bädorf <aur at benjaminbaedorf dot eu>
# Maintainer: Siddarth Dushantha <siddarth dot dushanta at gmail dot com>

pkgname=tmpmail-git
_pkgname=tmpmail
pkgver=72.gf32c7ee
pkgrel=1
pkgdesc="A temporary email right from your terminal"
arch=('any')
url="https://github.com/sdushantha/tmpmail"
license=('MIT')
makedepends=('git')
depends=('w3m' 'curl' 'jq')
provides=()
conflicts=()
source=("$_pkgname::git+https://github.com/sdushantha/tmpmail.git")
md5sums=('SKIP')

pkgver() {
    cd "$srcdir/$_pkgname"
    echo "$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)"
}

package() {
    cd "$srcdir/$_pkgname"
    chmod +x ./tmpmail
    mkdir -p "$pkgdir/usr/bin"
    cp ./tmpmail "$pkgdir/usr/bin"
}