blob: b9a0d1acedad8c3de22ed1996cd3531cc592efbc (
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
33
34
35
36
37
38
|
# Maintainer: LĂ©opold Koprivnik Ibghy <skwal.net@gmail.com>
pkgname="linux-on-drugs-git"
pkgver=r28.d2befe3
pkgrel=1
pkgdesc="Gives drugs to your terminal"
arch=('any')
url="https://github.com/SkwalExe/linux-on-drugs"
license=('MIT')
makedepends=("git" "cargo")
provides=("linux-on-drugs")
install=linux-on-drugs.install
source=("git+$url")
md5sums=("SKIP")
pkgver() {
cd linux-on-drugs
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd linux-on-drugs
# sudo rm -rf /usr/bin/linux-on-drugs
}
build() {
cd linux-on-drugs
cargo build --release
}
package() {
cd linux-on-drugs
mkdir -p ${pkgdir}/opt/${pkgname}
cp -rf * ${pkgdir}/opt/${pkgname}
install -Dm755 ./target/release/linux-on-drugs "$pkgdir/usr/bin/linux-on-drugs"
install -Dm644 ./README.md "$pkgdir/usr/share/doc/$pkgname"
}
|