Compare commits

..

3 Commits

4 changed files with 17 additions and 13 deletions

3
.gitignore vendored
View File

@ -1,4 +1 @@
/target
/pkg/
/src/pumopm-git/
/src/pumopm/

3
arch-pkg/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
*
.gitignore
!PKGBUILD

View File

@ -1,7 +1,7 @@
# Maintainer: Lucien Cartier-Tilet <lucien@phundrak.com>
pkgname=pumopm
pkgver=0.1.1
pkgrel=3
pkgname=pumopm-git
pkgver=0.1.1.r1.g4fd33bf
pkgrel=1
pkgdesc="A tiny power manager written in Rust"
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64')
url="https://labs.phundrak.com/phundrak/pumopm"
@ -9,8 +9,16 @@ license=('GPL3')
depends=()
makedepends=('rustup' 'git')
options=('strip' 'zipman')
source=("$pkgname::https://labs.phundrak.com/phundrak/pumopm/archive/$pkgver.tar.gz")
md5sums=('347a95efacdbf9f8ab3b2da6a7eff6cc')
source=("$pkgname::git+https://labs.phundrak.com/phundrak/pumopm.git")
md5sums=('SKIP')
# If Phundraks Gitea takes too long to answer, or if it is down, use the
# Github mirror
# source=("$pkgname}::git+https://github.com/Phundrak/pumopm.git")
pkgver() {
cd "$pkgname"
git describe --tags --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$pkgname"
@ -25,13 +33,9 @@ build() {
package() {
cd "$pkgname"
echo EXE
install -Dm755 "target/release/pumopm" "$pkgdir/usr/bin/pumopm"
echo LICENSE
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
echo MAN
install -Dm644 "pumopm.1" "$pkgdir/usr/share/man/man1/pumopm.1"
echo SERVCE
install -Dm644 "pumopm.service" "$pkgdir/usr/lib/systemd/system/pumopm.service"
}

View File

@ -3,7 +3,7 @@ Description=A small, simple, no bloat power manager.
[Service]
Type=notify
ExecStart=/usr/bin/pumo
ExecStart=/usr/bin/pumopm
Restart=on-failure
# Disalow writing to /usr, /bin, /usr/bin... It shouldnt, but just in case