summaryrefslogtreecommitdiff
path: root/community/stlink/PKGBUILD
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-02-23 16:15:08 -0300
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-02-23 16:15:08 -0300
commit44ae571c1d57a21af2c915b42bb656cf0d69c9ee (patch)
tree757e53f443e27a95d1b1b0cdf337c2147953fc46 /community/stlink/PKGBUILD
parenteadbb9961b89668e4aed317f5dd97cb04e86663e (diff)
parent1d20e4962664ab152948a14b4320b12204a1053e (diff)
Merge branch 'master' of gparabola:abslibre/abslibre-pre-mips64el
Conflicts: community/libftdi/PKGBUILD community/lxshortcut/PKGBUILD community/pcmanfm/PKGBUILD community/qingy/PKGBUILD community/yagf/PKGBUILD extra/ethtool/PKGBUILD extra/gptfdisk/PKGBUILD extra/postgresql/PKGBUILD extra/xfburn/PKGBUILD libre/linux-libre/PKGBUILD
Diffstat (limited to 'community/stlink/PKGBUILD')
-rw-r--r--community/stlink/PKGBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/community/stlink/PKGBUILD b/community/stlink/PKGBUILD
new file mode 100644
index 000000000..8104d73c0
--- /dev/null
+++ b/community/stlink/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Anatol Pomozov <anatol.pomozov@gmail.com>
+
+pkgname=stlink
+pkgrel=1
+pkgver=1.0.0
+pkgdesc='Firtmware programmer for STM32 STLINK v1/v2 protocol'
+arch=(i686 x86_64)
+url='https://github.com/texane/stlink'
+license=(BSD)
+depends=(libusb)
+install=stlink.install
+source=(https://github.com/texane/stlink/archive/$pkgver.zip)
+sha256sums=('09e676948adda9fd354d0a07584ad5884bc7f8e36ddb6b2f39b2211056b7263a')
+
+build() {
+ cd stlink-$pkgver
+ ./autogen.sh
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd stlink-$pkgver
+
+ # install binaries
+ make DESTDIR="$pkgdir" install
+
+ # install additional files
+ install -Dm644 stlink_v1.modprobe.conf "$pkgdir"/etc/modprobe.d/stlink_v1.modprobe.conf
+ install -Dm644 49-stlinkv1.rules "$pkgdir"/etc/udev/rules.d/49-stlinkv1.rules
+ install -Dm644 49-stlinkv2.rules "$pkgdir"/etc/udev/rules.d/49-stlinkv2.rules
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+ install -Dm644 README "$pkgdir"/usr/share/doc/$pkgname/README
+}