git » picocom.git » commit 9827414

https://www.archlinux.org/todo/pacman-hooks-systemd-sysuserstmpfiles/

author Sébastien Luttringer
2017-01-12 23:29:58 UTC
committer Sébastien Luttringer
2017-01-12 23:29:58 UTC
parent d0f637d797791b9f83951fcf52f74f0b3ba38d83

https://www.archlinux.org/todo/pacman-hooks-systemd-sysuserstmpfiles/

PKGBUILD +6 -6
picocom.install +0 -17

diff --git a/PKGBUILD b/PKGBUILD
index 6d4893a..b75de48 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,23 +3,22 @@
 
 pkgname=picocom
 pkgver=2.2
-pkgrel=1
+pkgrel=2
 pkgdesc='Minimal dumb-terminal emulation program, very much like minicom'
 url='https://github.com/npat-efault/picocom'
 license=('GPL2')
 arch=('i686' 'x86_64')
+makedepends=('git')
 depends=('glibc')
-install=$pkgname.install
-source=("$pkgname-$pkgver.tar.gz::https://github.com/npat-efault/picocom/archive/$pkgver.tar.gz")
-sha1sums=('db13433be036833d686241e2b3b5412d7776b7c9')
+source=("git+https://github.com/npat-efault/picocom.git#tag=$pkgver")
 
 build() {
-  cd $pkgname-$pkgver
+  cd $pkgname
   make UUCP_LOCK_DIR=/run/lock/picocom
 }
 
 package() {
-  cd $pkgname-$pkgver
+  cd $pkgname
   install -D -m 755 picocom "$pkgdir/usr/bin/picocom"
   install -D -m 644 picocom.1 "$pkgdir/usr/share/man/man1/picocom.1"
   # install tmpfiles for lock files
@@ -30,3 +29,4 @@ package() {
 }
 
 # vim:set ts=2 sw=2 et:
+md5sums=('SKIP')
diff --git a/picocom.install b/picocom.install
deleted file mode 100644
index a472b1f..0000000
--- a/picocom.install
+++ /dev/null
@@ -1,17 +0,0 @@
-# vim:set ts=2 sw=2 ft=sh et:
-
-## arg 1:  the new package version
-post_install() {
-  type -P systemd-tmpfiles >/dev/null && systemd-tmpfiles --create picocom.conf
-}
-
-# arg 1:  the new package version
-# arg 2:  the old package version
-post_upgrade() {
-  post_install "$1"
-}
-
-## arg 1:  the old package version
-pre_remove() {
- type -P systemd-tmpfiles >/dev/null && systemd-tmpfiles --clean --remove picocom.conf
-}