Compare commits

..

3 Commits

4 changed files with 17 additions and 13 deletions

3
.gitignore vendored
View File

@ -1,4 +1 @@
/target /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> # Maintainer: Lucien Cartier-Tilet <lucien@phundrak.com>
pkgname=pumopm pkgname=pumopm-git
pkgver=0.1.1 pkgver=0.1.1.r1.g4fd33bf
pkgrel=3 pkgrel=1
pkgdesc="A tiny power manager written in Rust" pkgdesc="A tiny power manager written in Rust"
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64') arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64')
url="https://labs.phundrak.com/phundrak/pumopm" url="https://labs.phundrak.com/phundrak/pumopm"
@ -9,8 +9,16 @@ license=('GPL3')
depends=() depends=()
makedepends=('rustup' 'git') makedepends=('rustup' 'git')
options=('strip' 'zipman') options=('strip' 'zipman')
source=("$pkgname::https://labs.phundrak.com/phundrak/pumopm/archive/$pkgver.tar.gz") source=("$pkgname::git+https://labs.phundrak.com/phundrak/pumopm.git")
md5sums=('347a95efacdbf9f8ab3b2da6a7eff6cc') 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() { build() {
cd "$pkgname" cd "$pkgname"
@ -25,13 +33,9 @@ build() {
package() { package() {
cd "$pkgname" cd "$pkgname"
echo EXE
install -Dm755 "target/release/pumopm" "$pkgdir/usr/bin/pumopm" install -Dm755 "target/release/pumopm" "$pkgdir/usr/bin/pumopm"
echo LICENSE
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/${pkgname}/LICENSE" install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
echo MAN
install -Dm644 "pumopm.1" "$pkgdir/usr/share/man/man1/pumopm.1" install -Dm644 "pumopm.1" "$pkgdir/usr/share/man/man1/pumopm.1"
echo SERVCE
install -Dm644 "pumopm.service" "$pkgdir/usr/lib/systemd/system/pumopm.service" 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] [Service]
Type=notify Type=notify
ExecStart=/usr/bin/pumo ExecStart=/usr/bin/pumopm
Restart=on-failure Restart=on-failure
# Disalow writing to /usr, /bin, /usr/bin... It shouldnt, but just in case # Disalow writing to /usr, /bin, /usr/bin... It shouldnt, but just in case