-
Notifications
You must be signed in to change notification settings - Fork 1
/
PKGBUILD
32 lines (29 loc) · 1007 Bytes
/
PKGBUILD
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
pkgname='hello-world-git'
_pkgname='hello-world.rs'
pkgver=0.1.0.r354.75cb3dc
pkgrel=1
arch=(x86_64 i686 pentium4 armv6h armv7h aarch64)
url="https://github.com/mTvare6/hello-world.rs"
pkgdesc="Memory safe, blazing fast, configurable, minimal hello world written in rust under 1 line of code with few dependencies"
license=('custom')
makedepends=(rust cargo git cmake)
depends=(cairo gtk3 alsa-lib glfw-x11 freetype2 glib2 pango atk gdk-pixbuf2)
provides=('hello-world')
conflicts=('hello-world')
source=("git+https://github.com/mTvare6/hello-world.rs")
sha256sums=('SKIP')
pkgver() {
cd "$_pkgname"
echo "$(awk '/^VERSION =/ {print $3}' config.mk)".r"$(git rev-list --count HEAD)"."$(git rev-parse --short HEAD)"
}
build() {
cd "$_pkgname"
make
}
package() {
cd "$_pkgname"
make PREFIX=/usr DESTDIR="${pkgdir}" install
install -Dm644 LICENSE.rs "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
}
# vim:set ts=4 sw=4 noet: