blob: fda45977b2db88a522df5f9bf5a61860207f85d4 (
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
30
31
32
|
# Maintainer: Jordan MacDonald <jordan(at)wastedintelligence(dot)com>
# Maintainer: Rafael Dominiquini <rafaeldominiquini at gmail dor com>
_pkgauthor=jmacdonald
_pkgname=amp
pkgname=${_pkgname}
pkgver=0.7.1
pkgrel=1
pkgdesc='A modal text editor for the terminal.'
arch=('x86_64')
url="https://github.com/${_pkgauthor}/${_pkgname}"
license=('GPL3')
depends=('libxcb')
makedepends=('rust' 'git' 'cmake' 'libxcb' 'python')
source=("https://github.com/${_pkgauthor}/${_pkgname}/archive/${pkgver}.tar.gz")
sha512sums=('21227a5212777e5687af0357eb34ca6498f47eabbc9e37d2db3fef0de65dab8daf99a6270485b551b3a2660a0aedf90b494b2ea0cfd66027815dbde369b78497')
build() {
cd "$pkgname-$pkgver" || exit
cargo build --release
}
package() {
cd "${pkgname}-${pkgver}" || exit
install -Dm755 "target/release/${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 "README.md" "${pkgdir}/usr/share/doc/${pkgname}/README.md"
install -Dm644 "CHANGELOG.md" "${pkgdir}/usr/share/doc/${pkgname}/CHANGELOG.md"
}
|